How do you reinstall an app's dependencies using npm?


Is there a simple way to reinstall all packages that my app depends on (i.e. they are in my apps node_modules folder)?

10/12/2012 8:18:08 PM

Accepted Answer

The easiest way that I can see is delete node_modules folder and execute npm install.

10/12/2012 8:21:43 PM

Right way is to execute npm update. It's a really powerful command, it updates the missing packages and also checks if a newer version of package alreaddy installed can be used.

Read Intro to NPM to understand what you can do with npm.

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow