From 64e35af8943655d94842965c3bee980e4b1ed45c Mon Sep 17 00:00:00 2001 From: NPM Mirror Bot Date: Sat, 12 Feb 2022 06:01:48 +0000 Subject: [PATCH] update https://registry.npm.taobao.org to https://registry.npmmirror.com --- docs/docs/0.21/tutorial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/docs/0.21/tutorial.md b/docs/docs/0.21/tutorial.md index 095de81..b9805a5 100644 --- a/docs/docs/0.21/tutorial.md +++ b/docs/docs/0.21/tutorial.md @@ -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修复)。