Simply change every dependency's version * to and then run npm update --save .
"Dependencies": { "Express" : "*" , "MongoDB" : "*" , : "*" , "RJs" : "*" , "Jade" : "*" , "async" : "*" }
After:
"Dependencies": { "Express": "~3.2.0" , "MongoDB" : "~1.2.14" , "underscore" : "~1.4.4" , "RJs" : " ~2.10.0 ", " Jade ": span class= "str" > "~0.29.0" , "async" :< Span class= "PLN" > "~0.2.7" }
Of course, this is the blunt hammer of updating dependencies. It ' s fine if-as you said-the project was empty and nothing can break.
On the other hand, if your ' re working in a more mature project, you probably want to verify that there is no breaking Chan Ges in your dependencies before upgrading.
To see which modules is outdated, just run npm outdated . It would list any installed dependencies that has newer versions available.
NPM Updates all dependencies