error An unexpected error occurred: “https://registry.npmjs.org/ant-design-vue/解决方案:
安装依赖包的时候报错,更换镜像源
文章共107字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
这个问题的主要原因还是镜像问题:
配置镜像的时候,一般我们只更换了一个镜像源,其实需要换两个。
# 全局安装yarn
npm i -g yarn
# 验证
yarn -v # 出现对应版本号即代表安装成功
配置镜像:
npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global
更多推荐
已为社区贡献1条内容
所有评论(0)