npm ERR! errno ECONNRESET npm ERR! network This is a problem related to network connectivity.解决方法和步骤
问题:npm ERR! errno ECONNRESET npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network np
问题:
npm ERR! errno ECONNRESET npm ERR! network This is a problem related to network connectivity. npm ERR! network In most cases you are behind a proxy or have bad network settings. npm ERR! network npm ERR! network If you are behind a proxy, please make sure that the npm ERR! network ‘proxy‘ config is set properly. See: ‘npm help config‘
npm install时 发生此错误 试了好多方法
解决办法:
首先
npm config set proxy null 代理置为空
运行npm cache clean --force清理缓存
然后尝试执行
npm config set registry http://registry.npmjs.org/
如果嫌安装依赖慢的话 可以使用国内淘宝镜像
npm config set registry https://registry.npm.taobao.org
更多推荐
所有评论(0)