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
  • 4,303
  • 6
  • 41
  • 70
  • 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,313
  • 15
  • 32
  • 40
Bruno Mazzardo
  • 1,586
  • 1
  • 15
  • 27
  • 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

jujka
  • 1,190
  • 13
  • 18