查看npm 对应的镜像地址
npm config get registry
设置镜像地址为淘宝的镜像地址
npm config set registry https://registry.npm.taobao.org/
npm install -g cnpm --registry=https://registry.npmmirror.com
cnpm install
本文指导如何设置npm的默认镜像为淘宝镜像,包括使用`npm config set registry`命令及实例npminstall操作,提升npm包下载速度。
查看npm 对应的镜像地址
npm config get registry
设置镜像地址为淘宝的镜像地址
npm config set registry https://registry.npm.taobao.org/
npm install -g cnpm --registry=https://registry.npmmirror.com
cnpm install
489
311
4085

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