Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/node.js/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios react native init导致生成开箱即用失败_Ios_Node.js_Xcode_React Native - Fatal编程技术网

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
中修复!

我认为您遇到了与此处所述相同的问题:确保您使用的也是所有依赖项的最新版本,尤其是节点