npm不会安装软件包“npm ERR!网络隧道插座无法建立,导致=解析错误“
我在npm和节点版本0.10.40中遇到麻烦。我以前从来没有这个问题,我不在代理身上。我尝试过在Stack Overflow和其他论坛上发现的其他解决方案,例如将注册表URL更改为http:// ..而不是https:// ..并将strict-ssl设置为false。当我这样做时,npm无法解析JSON。这是我的npm-debug.log。也许有人可以帮我弄清楚发生了什么。
I am having trouble with npm and node version 0.10.40. I never had this problem before and I am not behind a proxy. I have tried other solutions that I found on Stack Overflow and other forums such as changing the registry url to http://.. rather than https://.., and setting strict-ssl to false. When I do this npm is unable to parse JSON. Here is my npm-debug.log. Maybe someone can help me figure out what is going on.
我通过发出以下命令解决了此问题
I solved this issue by issuing the following commands
npm config set proxy false
npm cache clean
显然,npm正试图绕过一个代理,或者认为它是一个代理。奇怪的。
Apparently npm was attempting to bypass a proxy or believed it was behind a proxy. Strange.