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

场景复现

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

解决办法

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/

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

原链接

上一篇:yarn下载依赖慢的解决方法


下一篇:设置npm的registry