CNPM 的镜像设置

软件简介
CNPM 是中国 npm 镜像的客户端。

国内安装 China mirror:

npm install cnpm -g --registry=https://registry.npm.taobao.org

or 如果上面的不能安装,用下面代码

npm config set registry https://registry.npm.taobao.org 

查看是否安装成功

npm config get registry 

改回原始的镜像

npm config set registry https://registry.npmjs.org/

查看是否改成功

npm config get registry 
本作品采用《CC 协议》,转载必须注明作者和本文链接
讨论数量: 1

换个教程吧。cnpm早淘汰了,https://registry.npm.taobao.org也换成了https://registry.npmmirror.com developer.aliyun.com/mirror/NPM

6个月前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!