将npm镜像地址替换成淘宝

  1. 查看镜像地址:
$ npm get registry
  1. 配置淘宝镜像地址:
$ npm config set registry http://registry.npm.taobao.org/
  1. 确认是否切换成功:
$ npm config get registry

猜你喜欢

转载自blog.csdn.net/Menqq/article/details/109812849