React native command not found
<p>I am starting to install react native. I had successfully installed homebrew, nodejs , npm. but not able to install react native</p>

<p>First I had tried </p>

<pre>
npm install -g react-native-cli
</pre>

<p>gives me write warning:</p>

<pre>
Missing write access to /Users/project/.npm-packages/lib/node_modules/react-native-cli
</pre>

<p>After that I had tried</p>

<pre>
sudo npm install -g react-native-cli
</pre>

<pre>
/Users/project/.npm-packages/bin/react-native -> /Users/project/.npm-packages/lib/node_modules/react-native-cli/index.js
/Users/project/.npm-packages/lib
└── react-native-cli@1.0.0
</pre>

<p>Looks like install.</p>

<p>After that I tried</p>

<pre>
react-native init AwesomeProject
</pre>

<pre>
Error : react-native: command not found
</pre>

<p>What could be the problem</p>