共计 213 个字符,预计需要花费 1 分钟才能阅读完成。
查看自己使用的使什么镜像
在命令行中输入
npm config get registry
通过命令配置
npm config set registry https://registry.npm.taobao.org/
npm config set registry https://registry.npmmirror.com
总结
最后在使用
npm config get registry
查询是否更改为淘宝镜像
原文地址: 2024 npm 使用国内淘宝镜像的方法 (最详细)
正文完