Q:

Path error while installing react-native (Command not found error)

I am trying to install react-native. I have followed all the steps here:https://facebook.github.io/react-native/docs/getting-started.html#content
When I use this command :
react-native newProject

I am getting error as:
-bash: react-native: command not found.

I think incorrect path is the source of this error, but I don't know how to correct it. Any help is greatly appreciated
I have taken a look at this question but couldn't follow:Error when installed react-native-cli command not found

A:

I searched extensively and a few possible errors that could solve this issue is:

update and upgrade brew(the latter takes quite some time so be patient)
uninstall and re-install node-npm(brew install node)

After you re-install npm/node restart your computer,

npm install -g react-native-cli (install the cli stuff again now) 

Now it should work
I think reinstalling node worked for me(remember to reboot the system)
Hope this helps

