1, 修改 下载仓库为淘宝镜像
npm config set registry http://registry.npm.taobao.org/
2, 如果要发布自己的镜像需要修改回来
npm config set registry https://registry.npmjs.org/
3, 安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
1, 修改 下载仓库为淘宝镜像
npm config set registry http://registry.npm.taobao.org/
2, 如果要发布自己的镜像需要修改回来
npm config set registry https://registry.npmjs.org/
3, 安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
本文标题:npm修改淘宝镜像
本文链接:https://www.haomeiwen.com/subject/smgibltx.html
网友评论