#yyds干货盘点#npm/cnpm 设置镜像地址

阅读 54

2023-03-09

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)

0 0 举报