'Command `bundle` unrecognized. Did you mean to run this inside a react-native project?

I am currently upgrading to the most recent version of react from 0.11.0 branch.

I have upgraded successfully through each step with minimal issues but when I got to 0.14.0 I hit some issues with:

node_modules/react-native/packager/react-native-xcode.sh

No matter what I do all my machines seem to get this same error.

Command `bundle` unrecognized. Did you mean to run this inside a react-native project?

I also run this same command that script runs from my terminal in the same location and it works fine, I have also set the path as well and before the script runs no mas, set path inside the script still nothing.

I am hoping someone else has saw this and has found a solution or is there a work around so we dont need this script.

I started this project with react-native ~0.6.0 maybe even a little earlier.

I have even removed nvm to combat this issue and using single install of node which is on PATH in both conditions.

Thanks!



Solution 1:[1]

Have you installed the latest version of react-native-cli globally?

npm uninstall -g react-native-cli
npm install -g react-native-cli

Solution 2:[2]

I personally preferred to install it as a dev dependency.

yarn add -D react-native-cli

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 John Shammas
Solution 2 Yairopro