1

I am very new to React native.

Following the documentation, after putting the command $react-native init AwesomeProject I'm getting: react-native command not found

enter image description here

moondaisy
  • 3,995
  • 6
  • 34
  • 65
  • 3
    Possible duplicate of [react-native: command not found](https://stackoverflow.com/questions/37189081/react-native-command-not-found) – morganbaz May 15 '18 at 13:24
  • check the path. Make sure that the path you using is same as where the binaries are installed. Feel free to know how. – ADK May 17 '18 at 11:16

2 Answers2

1

Try typing npm i -g react-native-cli.

Robert Columbia
  • 6,180
  • 14
  • 30
  • 39
Bruno Mazzardo
  • 1,488
  • 1
  • 14
  • 25
  • This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - [From Review](/review/low-quality-posts/19734943) – Narendra Jadhav May 15 '18 at 18:28
  • As he didn't ask a question, I thought that a solution could fit here, sorry – Bruno Mazzardo May 15 '18 at 18:31
-1

You should run this command to set path

export PATH="/Users/ots/.npm-global/bin:$PATH"

Then you can run react-native init MyNewProject

egorikem
  • 1,077
  • 11
  • 18