Npm、Yarn 镜像仓库

列表

名称 网址
阿里云 https://registry.npm.taobao.org
华为 https://repo.huaweicloud.com/repository/npm/

配置方法

Npm 配置

NPM的配置文件为用户家目录下的:~/.npmrc(Windows路径为:C:\Users\<UserName>\.npmrc),您可以点击此处直接下载配置文件,或者运行如下命令设置:

1
2
npm config set registry https://repo.huaweicloud.com/repository/npm/
npm cache clean -f
Yarn 配置

yarn的配置文件为用户根目录下的:~/.yarnrc(Windows路径为:C:\Users\<UserName>\.yarnrc),可执行如下命令设置镜像源:

1
yarn config set registry https://repo.huaweicloud.com/repository/npm/

相关网址

NPM官方地址:https://www.npmjs.com

NPM文档地址:https://docs.npmjs.com

nodejs地址:https://nodejs.org/en

io.js官方地址:https://iojs.org/zh

Python官方地址:https://www.python.org/

Electron官方地址:https://electronjs.org/

phantomJS官方地址:http://phantomjs.org/

Node-Sass官方地址:https://github.com/sass/node-sass

Selenium官方地址:https://www.seleniumhq.org/https://gradle.org/)

Node.js加速地址:https://repo.huaweicloud.com/nodejs/

io.js加速地址:https://repo.huaweicloud.com/iojs/

Npm加速地址:https://repo.huaweicloud.com/npm-software/

yarn加速下载地址:https://repo.huaweicloud.com/yarn/