修改仓库为淘宝镜像,淘宝出了新域名地址
npm config set registry https://registry.npmmirror.com/
如果要发布自己的镜像需要修改回来
npm config set registry https://registry.npmjs.org/
安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
本文介绍了如何将NPM配置为使用淘宝镜像地址以加速包的下载。通过运行命令`npm config set registry https://registry.npmmirror.com/`来切换到淘宝镜像,若需发布包则需改回`npm config set registry https://registry.npmjs.org/`。同时,文章还提到了安装cnpm的方法:`npm install -g cnpm --registry=https://registry.npm.taobao.org`。
npm config set registry https://registry.npmmirror.com/
npm config set registry https://registry.npmjs.org/
npm install -g cnpm --registry=https://registry.npm.taobao.org
411
2107
9923

被折叠的 条评论
为什么被折叠?