title: react-native: command not found
body: <p>I am brand new to React native, and following the instructions on the '<a href="https://facebook.github.io/react-native/docs/getting-started.html#content" rel="nofollow noreferrer">getting started</a>' page I came across the following problem. I ran the npm install, however I get <code>react-native: command not found</code>. I did <code>brew install node</code>, and <code>brew install watchman</code> and both installed without errors. Additionally I downloaded xcode from the mac app store earlier today. Any help is appreciated!</p>
  
  <p>Also - I tried the solution on this <a href="https://stackoverflow.com/questions/33282545/bash-react-native-command-not-found">SO post</a>, however, it still isn't working.</p>
  
  <p>Below is output from the terminal, as well as my .bashrc file located in ~/.</p>
  
  <pre><code>Desktop npm install -g react-native-cli
  /Users/roni/.npm-global/bin/react-native -&gt; /Users/roni/.npm-global/lib/node_modules/react-native-cli/index.js
  /Users/roni/.npm-global/lib
  └── react-native-cli@1.2.0 
  
   Desktop react-native init reactNativeTest
  -bash: react-native: command not found
  </code></pre>
  
  <p><strong>.bashrc</strong></p>
  
  <pre><code>source /usr/local/opt/nvm/nvm.sh
  export PATH="/usr/local/share/npm/bin:$PATH"
  
  ### Added by the Bluemix CLI
  source /usr/local/Bluemix/bx/bash_autocomplete
  </code></pre>
  
  <p>Please note I changed npm's default directory to another directory, per the npm docs on <a href="https://docs.npmjs.com/getting-started/fixing-npm-permissions%5C" rel="nofollow noreferrer">fixing npm permissions</a></p>
  
  <pre><code>Make a directory for global installations:
  
   mkdir ~/.npm-global
  Configure npm to use the new directory path:
  
   npm config set prefix '~/.npm-global'
  Open or create a ~/.profile file and add this line:
  
   export PATH=~/.npm-global/bin:$PATH
  Back on the command line, update your system variables:
  
   source ~/.profile
  </code></pre>