[转]npm镜像使用方法(转载请删除括号里的内容)

2019独角兽企业重金招聘Python工程师标准>>> hot3.png

npm镜像使用方法

npm镜像,就是npm的只读副本。

使用方法有3种,推荐第一种或者第三种

编辑 ~/.npmrc 加入下面内容

registry = http://registry.cnpmjs.org

永久生效。

config命令

npm config set registry http://registry.cnpmjs.org npm info underscore (如果上面配置正确这个命令会有字符串response)

永久生效。

命令行指定

npm --registry http://registry.cnpmjs.org info underscore 

本次有效。

国内镜像资源

  • http://r.cnpmjs.org/
  • http://registry.cnpmjs.org/
  • http://registry.npm.taobao.org

搜索镜像:

  • http://cnpmjs.org
  • http://npm.taobao.org/

建立或使用镜像,参考: https://github.com/fenmgk2/cnpmjs.org

国外的镜像资源:

Registry: http://registry.npmjs.orgWebsite: npmjs.orgRegion: GlobalData Center: Joyent, FastlyMaintainer: npm Inc.Established: 2010European npm Mirror

Registry: http://registry.npmjs.euWebsite: npmjs.euRegion: Europe, GermanyData Center: HetznerMaintainer: Maciej MałeckiEstablished: November, 2013Australian npm Mirror

Registry: http://registry.npmjs.org.auWebsite: npm.nodejs.org.auRegion: AustraliaData Center: AWSMaintainer: Rod VaggEstablished: July, 2013Nodejitsu US npm Mirror

Registry: https://registry.nodejitsu.comWebsite: nodejitsu.comRegion: US EastData Center: JoyentMaintainer: NodejitsuEstablished: January, 2014StrongLoop US npm Mirror

Registry: https://npm.strongloop.comWebsite: strongloop.comRegion: US WestData Center: RackspaceMaintainer: StrongLoopEstablished: February, 2014

 

转载于:https://my.oschina.net/mustang/blog/263435


---------------------
作者:weixin_34247155
来源:CSDN
原文:https://blog.csdn.net/weixin_34247155/article/details/91910046
版权声明:本文为作者原创文章,转载请附上博文链接!
内容解析By:CSDN,CNBLOG博客文章一键转载插件

你可能感兴趣的:(React)