LoginSignup
3
0

More than 5 years have passed since last update.

npm shrinkwrap やっていると package.json 更新しただけでは、npm install でインストールされない

Posted at

package.json の dependencies を更新したのに、 npm install しても更新後のバージョンがインストールされないって時は、npm shrinkwrap しているかどうかを確認した方がいい。 npm install は npm-shrinkwrap.json がある時、 package.json よりも優先してそっちを見る。 なので、一度、 npm install hoge -save として個別でインストールした後、 npm shrinkwrap しなす必要がある。この後は、 'npm install' でも package.json に定義されたバージョンがインストールされる。

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0