I was trying to do environment setup for Angular2 and for that I am getting below mentioned error while using command : npm install
I am having Node versions : Node version is v6.7.0, npm version is 3.10.3
Is there any solution for the same?
Solved the issue.
There was an issue with Windows System settings.
Steps to solve the issue:
Go to Windows' Settings >> Network & Internet >> Proxy Go to Automatic proxy setup >> Make 'Automatically detect settings' to off.
Now this works for me.
Thanks
I found two solutions for this problem.
SOLUTION 1
If you are on Windows 10 go to settings (go to start and type settings).
Go to Network And Internet > Go To The Proxy tab Available on the left sidebar > under this tab you will find a setting called Automatically Detect Settings > Simply turn it off...
You are done and good to go .....
SOLUTION 2
Deleting the C:\Users\{user}\AppData\Roaming\npm and Then
Deleting the C:\Users{user}\AppData\Roaming\npm-cache folder
You are done....
Initially this problem can occur due to node version. See if you're using multiple node version with your machine. If yes, you should also have nvm with you. Do nvm use latest (if up to date version is also installed) or use nvm user v16.18.0 (for example considering this is the latest/ other node version you have). Then try to install other things.
You need to use cmd with admin access to change node version using nvm.
Thanks,
CMDas an administrator using theRun As Administratorand see if it works?npm set registry https://registry.npmjs.org/before executing yournpm installcommand?nodeandnpmto the latest