npm使用淘宝镜像源设置大全

阅读 140

2023-07-18

你还在为npm拉取包缓慢而烦恼吗?

还在为npm包拉取失败而烦恼吗?

npm指定淘宝镜像源你值得拥有!!!!

单次使用

npm install koa --registry=https://registry.npm.taobao.org

永久使用

配置淘宝镜像源

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

查看配置是否成功

npm config get registry

使用

npm install koa

cnpm

安装cnpm

npm install cnpm -g --registry=https://registry.npm.taobao.org

检查安装是否成功

cnpm -v

使用

cnpm install koa

精彩评论(0)

0 0 举报