How do I update devDependencies in NPM?

2019-01-29 22:18发布

npm update seems to just update the packages in dependencies, but what about devDependencies.

Right now you can install devDependencies by running npm install ., but this doesn't work for npm update .

Any ideas?

标签: node.js npm
8条回答
等我变得足够好
2楼-- · 2019-01-29 23:12

This problem does no longer excise with the current version of NPM (1.3.11).

Update works fine with: npm update

查看更多
干净又极端
3楼-- · 2019-01-29 23:14

Add new dependency in config.json file,

then run command

npm update

Sometimes need to run command with sudo for admin priviledges then use.

sudo npm update
查看更多
登录 后发表回答