npm install hangs

I had the same problem. The reason – wrong proxy was configured and because of that npm was unable to download packages. So your best bet is to the see the output of and identify the problem. If you have never configured proxy, then possible causes can be Very outdated npm version. Some problem with … Read more

npm update check failed

Last night I tried to update my node and npm, it seemed to have been successful, however ever since then I have been getting this same error any time I try and run any npm command. I have tried uninstalling and re-installing npm, but cannot get past this error message below. Node version: v8.3.0 Error … Read more

npm install with error: `gyp` failed with exit code: 1

I am try to install modules on Windows 10 using npm 5.6.0. When I enter npm install I get: it seems like node-sass install error. the environment is bellow: python version:2.7.14 npm version: 5.6.0 node version:8.10.0 ruby version:2.3.3p222 (2016-11-21 revision 56859) [i386-mingw32] system:win10(x64) node-gyp:3.6.2 and I have installed Microsoft Visual Studio express 2015, the bellow … Read more

How do you 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: 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). I’m now using the following Bash command, which I’ve mapped … Read more