Reputation: 109
I install the react-native
I install the nodejs
I set the paths
When i do sudo react-native init AwesomeProject
give me react-native: command not found
Upvotes: 2
Views: 6491
Reputation: 5082
https://github.com/facebook/react-native/issues/3974
The above thread have conversation that solved my problem earlier when i faced the same issue. Maybe you will need to add the path manually. Add User/[your-user]/npm/bin to the $PATH.
Upvotes: 1
Reputation: 40904
You need to run npm install -g react-native-cli
first.
See http://facebook.github.io/react-native/docs/getting-started.html
Upvotes: 5