FetchError: request to http://10.6.110.103:34873/jspdf failed, reason: connect ECONNREFUSED 10.6.110.103:34873

今天在vs code里安装NPM 报这样的错误

FetchError: request to http://10.6.110.103:34873/jspdf failed, reason: connect ECONNREFUSED 10.6.110.103:34873

解决办法

1.取消npm代理设置,执行命令
npm config set proxy null
npm config set https-proxy null
2.添加淘宝镜像

npm --registry https://registry.npm.taobao.org info underscore

3.在.npmrc文件中添加代理:registry = https://registry.npm.taobao.org/
.npmrc路径如下:

 

 

posted @ 2023-09-13 17:30  张亮java  阅读(98)  评论(0编辑  收藏  举报