问题
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?
回答1:
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
回答2:
I have worked in react and I was tried to hit command npm install and I have found same above problem.
Solution is:
Check the latest update of npm:
npm install npm@next -g
回答3:
This is my error (Windows 10)
This is my solution:
Deleting the C:\Users\{user}\AppData\Roaming\npm
and
Deleting the C:\Users\{user}\AppData\Roaming\npm-cache
folder
Done! It should work!
来源:https://stackoverflow.com/questions/40458734/npm-err-windows-nt-10-0-10586