国内npm镜像源设置

国内npm镜像源设置,第1张

国内npm镜像源设置 淘宝npm镜像

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

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

cnpmjs镜像

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

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

使用方法

临时使用npm --registry https://registry.npm.taobao.org install express

持久使用npm config set registry https://registry.npm.taobao.org

配置完成后可通过下面方式来验证是否成功

npm config get registrynpm info express

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/588344.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-04-12
下一篇 2022-04-12

发表评论

登录后才能评论

评论列表(0条)

保存