美文网首页
npm镜像及配置方法

npm镜像及配置方法

作者: 16manman | 来源:发表于2018-08-20 10:49 被阅读0次

淘宝npm镜像

cnpmjs镜像


如何使用

  1. 临时使用
npm --registry https://registry.npm.taobao.org install express
  1. 持久使用(推荐使用)
npm config set registry https://registry.npm.taobao.org
 
// 配置后可通过下面方式来验证是否成功
npm config get registry
// 或
npm info expres

3.通过cnpm使用 (也可以使用cnpm)

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

相关文章

网友评论

      本文标题:npm镜像及配置方法

      本文链接:https://www.haomeiwen.com/subject/cuykiftx.html