npm 淘宝镜像

1.通过config命令

npm config set registry https://registry.npm.taobao.org 
npm info underscore (如果上面配置正确这个命令会有字符串response

npm install -g cnpm --registry=https://registry.npm.taobao.org
posted @ 2017-11-09 14:47  沙滩多啦图  阅读(160)  评论(0编辑  收藏  举报