转载-npm更换淘宝镜像源

转载自:https://blog.csdn.net/u012780176/article/details/82586358

打开终端:

1
npm install -g cnpm --registry=https://registry.npm.taobao.org

官方源:

默认源

1
npm config set registry https://registry.npmjs.org

换源:

1
npm config set registry https://registry.npm.taobao.org

配置后通过以下方法验证是否成功:

1
npm config get registry