Skip to content
This repository has been archived by the owner on Feb 15, 2022. It is now read-only.

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

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
4 changes: 2 additions & 2 deletions docs/docs/0.21/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ React Native需要一些基础的配置工作,你可以参考[开始使用Reac
__译注__:由于众所周知的网络原因,react-native命令行从npm官方源拖代码时会遇上麻烦。请先将npm仓库源替换为国内镜像:

```bash
npm config set registry https://registry.npm.taobao.org
npm config set disturl https://npm.taobao.org/dist
npm config set registry https://registry.npmmirror.com
npm config set disturl https://npmmirror.com/dist
```

另,执行init时切记不要在前面加上sudo(否则新项目的目录所有者会变为root而不是当前用户,导致一系列权限问题,请使用chown修复)。
Expand Down