国内优秀npm镜像推荐及使用

it2022-05-05  172

国内优秀npm镜像

淘宝npm镜像

搜索地址:http://npm.taobao.org/registry地址:http://registry.npm.taobao.org/

cnpmjs镜像

搜索地址:http://cnpmjs.org/registry地址:http://r.cnpmjs.org/

1.临时使用

npm --registry https://registry.npm.taobao.org install express

2.持久使用

npm config set registry https://registry.npm.taobao.org // 配置后可通过下面方式来验证是否成功 npm config get registry // 或 npm info express

3.通过cnpm使用

npm install -g cnpm --registry=https://registry.npm.taobao.org // 使用 cnpm install expresstall express

转载于:https://www.cnblogs.com/liyujun1988/p/7183240.html

相关资源:各显卡算力对照表!

最新回复(0)