Followed the setup steps from official site,I am not able to find react-natve command refer below console commands and its output:
Bhushans-MBP:node_modules bhushanraut$ npm install -g react-native-cli
/Users/bhushanraut/.npm-packages/bin/react-native -> /Users/bhushanraut/.npm-packages/lib/node_modules/react-native-cli/index.js
Bhushans-MBP:node_modules bhushanraut$ react-native init AwesomeProject
-bash: react-native: command not found
The issue is
/Users/bhushanraut/.npm-packages/bin/ directory is not added to global
You need add that to
Execute the below command in terminal
This will open the file in vi editor. Append the following line in that file.
Then save and close the file.
Execute the following command
Now try executing
react-native init AwesomeProject command. This should solve the problem.