nmp 设置淘宝镜像

nmp 设置淘宝镜像

2019/8/17 9:18:21

一、通过命令设置

1.命令

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

2.验证命令

npm config get registry

如果返回下面,则成功!

https://registry.npm.taobao.org

二、通过使用cnpm安装

命令

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

三、问题

原文地址:https://www.cnblogs.com/damahuhu/p/11696353.html