npm ERR! code ECONNRESET

1、这种情况,多半是国内网络,访问外网不太稳定

npm ERR! code ECONNRESET
npm ERR! syscall read
npm ERR! errno -4077
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'

npm ERR! A complete log of this run can be found in: C:\Users\Lenovo\AppData\Local\npm-cache\_logs\2024-11-29T13_08_32_873Z-debug-0.log

  

解决方案:

  换成淘宝镜像  npm config set registry https://registry.npmmirror.com

posted @ 2024-11-29 22:20  信铁寒胜  阅读(830)  评论(0)    收藏  举报