npm ERR! Windows_NT 10.0.10586

谁说胖子不能爱 提交于 2019-12-08 01:20:31

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!