Ios react native init导致生成开箱即用失败
使用Ios react native init导致生成开箱即用失败,ios,node.js,xcode,react-native,Ios,Node.js,Xcode,React Native,使用react native init,然后npm install会导致生成失败并出现错误: Command /bin/sh failed with exit code 127 和信息: ../node_modules/react-native/packager/react-native-xcode.sh: line 36: react-native: command not found Command /bin/sh failed with exit code 127 已在本地和全局安装
react native init
,然后npm install
会导致生成失败并出现错误:
Command /bin/sh failed with exit code 127
和信息:
../node_modules/react-native/packager/react-native-xcode.sh: line 36: react-native: command not found
Command /bin/sh failed with exit code 127
已在本地和全局安装react native,但均无效
有没有人遇到过这个问题,知道如何解决 这里解释的黑客是有效的: 添加
source~/.bash\u配置文件
到react native xcode.sh的开头
显然,已在0.16.0-rc
中修复!
我认为您遇到了与此处所述相同的问题:确保您使用的也是所有依赖项的最新版本,尤其是节点