0
点赞
收藏
分享

微信扫一扫

#yyds干货盘点#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

举报

相关推荐

0 条评论