有时候可能因为使用代理,使用npm下载node模块会报"proxy"相关的错误,error提示ECONNECT,好像是这么拼的。

解决办法

1 配置代理

npm config set proxy=http://username:password@xxx.xxx.xxx.xxx:8080

2 配置镜像网址

npm config set registry http://r.cnpmjs.org

 

相关文章:

  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2021-04-01
猜你喜欢
  • 2022-02-15
  • 2022-12-23
  • 2021-10-28
  • 2022-12-23
  • 2021-08-02
相关资源
相似解决方案