npm ERR! red ECONNRESET

585次阅读
没有评论

共计 474 个字符,预计需要花费 2 分钟才能阅读完成。

npm install 时候提示:

% npm install
npm ERR! read ECONNRESET
npm ERR! syscall read
npm ERR! errno -54
npm ERR! network read 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'

根据提示,好像是代理什么的问题,但是刚安装的 node 环境也没有配置过,此时只需要清理一下本地缓存即可:

% npm config rm proxy
% npm config rm https-proxy

再次执行 npm install 就安装成功了

正文完
加入官方交流QQ群:778957856
post-qrcode
 0
clark
版权声明:本站原创文章,由 clark 于2023-09-22发表,共计474字。
转载说明:除特殊说明外本站文章皆由CC-4.0协议发布,转载请注明出处。
评论(没有评论)