Npm How to Reinstall Node Modules Packages (package.json)

September 30, 2018
rm -rf node_modules
npm install

NOTE: npm update won’t do anything if there are no newer packages.

NOTE: if you just want to reinstall a particular package (file corruption or downgrade package), you should be able to delete rm -rf node_modules/PACKAGE_NAME and run npm install.

This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.