首页 > 其他分享 >npm使用淘宝镜像源

npm使用淘宝镜像源

时间:2023-03-21 12:44:25浏览次数:46  
标签:npm cnpm registry install 淘宝 镜像

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)

标签:npm,cnpm,registry,install,淘宝,镜像
From: https://www.cnblogs.com/harbors/p/17239589.html

相关文章