npm install一直报错equest to https://registry.npm.taobao.org/underscore failed, reason: Client network
request to https://registry.npm.taobao.org/underscore failed, reason: Client network socket disconnected before secure TLS connection was establishednpm ERR! network This is a problem related to netwo
·
在这里插入图片描述
解决办法:
解决方案:
1、执行:
npm config get proxy
npm config get https-proxy
如果返回值不为null,继续执行:
(这一步很重要,一定要保证两个命令的返回值都为null,话说回来,应该出现这个错误这两个返回值有不为null的)
npm config set proxy null
npm config set https-proxy null
2、执行:
npm config set registry http://registry.cnpmjs.org/
可以使用淘宝镜像安装
npm install -g cnpm --registry=https://registry.npm.taobao.org
解决方案2
npm config set proxy false
npm cache verify
更多推荐
所有评论(0)