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

 

 

引用: npm使用淘宝镜像源 - tanyiqu - 博客园 (cnblogs.com)

posted @ 2023-03-21 12:37  新上小菜鸟  阅读(242)  评论(0编辑  收藏  举报