React Native:0.27.2
React:15.1.0
Node:6.1.0
above sea level : 3.8.6
Visual Studio Code:1.2.0
After running, the error is as follows:
######### Attempting to start the React Native packager ##########
######### Starting Packager ##########
######### Executing command: react-native start --port 8081 ##########
[Error : 0105] Failed to run the application in iOS: spawn react-native ENOENT
Solution:
Check the installation directory of the react-native command in the terminal: which react-native
(1) If it is already installed, set the environment variable
(2) If it is not installed, install react-native-cli globally