react native 运行不起来
1 回答
万千封印
TA贡献1891条经验 获得超3个赞
是react native 最新版本问题,下面两组命令,随便选一组。
npm uninstall react-native
npm install --save react-native@0.55.4
npm install --save babel-core@latest babel-loader@latest
npm uninstall --save babel-preset-react-native
npm install --save babel-preset-react-native@4.0.0
react-native run-android
==========或者======
//卸载最新版本
npm uninstall react-native
npm uninstall -g react-native-cli
//安装
npm install react-native@0.55.4
npm install -g react-native-cli@1.2.0
react-native run-android
添加回答
举报
0/150
提交
取消