Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

5
  • 41
    Have you tried npm i -g react-native-cli instead of npm i -g react-native ? Commented May 12, 2016 at 13:56
  • 3
    i am using "sudo npm install -g react-native-cli"
    – Ashok R
    Commented May 12, 2016 at 13:58
  • Hmm.. not sure but maybe check this thread stackoverflow.com/questions/33282545/… Commented May 12, 2016 at 14:03
  • 4
    As they specified i have to add /usr/local/share/npm/bin in my PATH Variable. but i don't have any npm directory inside /usr/local/share. Thanks @NaderDabit
    – Ashok R
    Commented May 12, 2016 at 14:12
  • 1
    when i run npm config --global get prefix i can see npm directory in this location -> /usr/local/Cellar/node/6.1.0/libexec/npm. I have added it to PATH variable. Executed react-native init someApp command still same error:-(
    – Ashok R
    Commented May 12, 2016 at 15:42