How do you globally uninstall all dependencies listed in package.json (NPM)?
If using Bash, just switch into the folder that has your package.json file and run the following: for package in `ls node_modules`; do npm uninstall $package; done; In the case of globally-installed packages, switch into your %appdata%/npm folder (if on Windows) and run the same command. EDIT: This command breaks with npm 3.3.6 (Node 5.0). … Read more