npm不会安装软件包“npm ERR!网络隧道插座无法建立,导致=解析错误“ [英] npm won't install packages "npm ERR! network tunneling socket could not be established, cause=Parse Error"

查看:243
本文介绍了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.

npm- debug.log

推荐答案

我通过发出以下命令解决了此问题

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.

这篇关于npm不会安装软件包“npm ERR!网络隧道插座无法建立,导致=解析错误“的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆