Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update https://registry.npm.taobao.org to https://registry.npmmirror.com #25

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions readme/yarn,nodejs,npm,Flutter有关命令.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,23 +129,23 @@ npm install yarn -g

> 1、使用以下命令:

npm config set registry=http://registry.npm.taobao.org/
npm config set registry=https://registry.npmmirror.com/


> 2、或者使用全局设置的命令:

npm config set registry https://registry.npm.taobao.org --global
npm config set disturl https://npm.taobao.org/dist --global
npm config set registry https://registry.npmmirror.com --global
npm config set disturl https://npmmirror.com/dist --global


> 3、找到node.js的安装目录,进入nodejs\node_modules\npm找到文件npmrc,打开后在该文件末尾加上

registry = https://registry.npm.taobao.org
registry = https://registry.npmmirror.com

然后保存退出即可。


> 4、给yarn设置镜像:

yarn config set registry https://registry.npm.taobao.org --global
yarn config set disturl https://npm.taobao.org/dist --global
yarn config set registry https://registry.npmmirror.com --global
yarn config set disturl https://npmmirror.com/dist --global