0%

Installing react-native package from npm...

##问题
react-native init 的时候卡住不动,一直提示:

Installing react-native package from npm…

##解决办法

命令行输入:

echo 'registry = https://registry.npm.taobao.org' > ~/.npmrc

然后再执行init

react-native init AwesomeProject --verbose