Franko Loshe
Franko Loshe

Reputation: 109

React-native command not found ubuntu 16.04

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

Answers (2)

rajaishwary
rajaishwary

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

Martin Konicek
Martin Konicek

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

Related Questions