Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I update devDependencies in NPM?

Tags:

node.js

npm

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?

like image 908
Matt Avatar asked Apr 09 '12 03:04

Matt


1 Answers

To update package.json in addition to the local modules, run

npm update --save-dev 

Alternatively, the same command to save time

npm update -D 

You can view the full detail of update, or any command for that matter through

npm help <cmd> 
like image 149
deckerdev Avatar answered Oct 10 '22 03:10

deckerdev