解决stack FetchError: request to https://registry.npm.taobao.org/@vue%2fcli-plugin-vuex failed, reason: connect ECONNREFUSED

场景复现

image

解决办法

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/

image

原链接

posted @ 2021-12-10 19:10  小牛知足  阅读(11250)  评论(0)    收藏  举报