打开终端 :npm install -g cnpm --registry=https://registry.npm.taobao.org
官方源(默认):npm config set registry https://registry.npmjs.org
换源:npm config set registry https://registry.npm.taobao.org
验证是否成功:npm config get registry
打开终端 :npm install -g cnpm --registry=https://registry.npm.taobao.org
官方源(默认):npm config set registry https://registry.npmjs.org
换源:npm config set registry https://registry.npm.taobao.org
验证是否成功:npm config get registry
本文标题:npm 更换淘宝镜像源
本文链接:https://www.haomeiwen.com/subject/mlobnhtx.html
网友评论