2019独角兽企业重金招聘Python工程师标准>>>
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