美文网首页
npm设置镜像站

npm设置镜像站

作者: 小矮人Ethan | 来源:发表于2016-08-09 10:15 被阅读10次

淘宝镜像:http://npm.taobao.org/

  • 通过config命令
    npm config set registry https://registry.npm.taobao.org npm info underscore
    (如果上面配置正确这个命令会有字符串response)
  • 命令行指定
    npm --registry https://registry.npm.taobao.org info underscore
  • 编辑 ~/.npmrc,加入下面内容:
    registry = https://registry.npm.taobao.org
    (推荐使用,一次配置,一劳永逸。)

相关文章

网友评论

      本文标题:npm设置镜像站

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