Node.js – How to reinstall an app’s dependencies using npm

node.jsnpm

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

Best Answer

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