likes
comments
collection
share

npm/cnpm 设置镜像地址

作者站长头像
站长
· 阅读数 43

npm

查看当前镜像源:

npm config get registry

# https://registry.npmjs.org/

修改当前镜像源:

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

cnpm

安装 cnpm:

npm install cnpm -g

查看当前镜像源:

cnpm config get registry

# https://registry.npm.example.com

修改当前镜像源:

cnpm config set registry https://registry.npm.example.com

版权声明

本博客所有的原创文章,作者皆保留版权。转载必须包含本声明,保持本文完整,并以超链接形式注明作者后除和本文原始地址:https://blog.mazey.net/2833.html

(完)