一、如何检测镜像是否设置成功呢?即查看镜像的配置结果
npm config get registry
二、设置淘宝镜像 (https://npm.taobao.org/)
在管理员界面输入下面命令
npm install -g cnpm --registry=https://registry.npm.taobao.org
一、如何检测镜像是否设置成功呢?即查看镜像的配置结果
npm config get registry
二、设置淘宝镜像 (https://npm.taobao.org/)
在管理员界面输入下面命令
npm install -g cnpm --registry=https://registry.npm.taobao.org