npm/cnpm 设置镜像地址

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

(完)

posted @ 2022-05-28 22:01  后除  阅读(345)  评论(0编辑  收藏  举报