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 协议》,转载必须注明作者和本文链接
推荐文章: