# 查看自己的环境镜像
npm config get registry
# 切换镜像为 xxxx (xxxx为镜像地址)
npm config set registry xxxx
# 国外镜像
https://registry.npm.org/
# 淘宝镜像
http://registry.npm.taobao.org/
微信扫一扫
# 查看自己的环境镜像
npm config get registry
# 切换镜像为 xxxx (xxxx为镜像地址)
npm config set registry xxxx
# 国外镜像
https://registry.npm.org/
# 淘宝镜像
http://registry.npm.taobao.org/
相关推荐