Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error when installed react-native-cli command not found

Tags:

react-native

Thanks for any help in advance , I am new to Mac in general so please forgive my question if its very straightforward, I installed native-react-cli and wanted to open/create a project . But I get the error 'react-native : command not found'

I install react-native-cli:

npm install -g react-native-cli
npm http GET https://registry.npmjs.org/react-native-cli
npm http 304 https://registry.npmjs.org/react-native-cli
npm WARN package.json [email protected] No README.md file found!
/usr/local/share/npm/bin/react-native -> /usr/local/share/npm/lib/node_modules/react-native-cli/index.js
[email protected] /usr/local/share/npm/lib/node_modules/react-native-cli

I try to open/create a project:

react-native AwesomeProject
-bash: react-native: command not found
react-native init helloWorld
-bash: react-native: command not found

Thanks for your time , I greatly appreciate any help

like image 424
Davet Avatar asked Jul 23 '26 17:07

Davet


1 Answers

I had this issue, and it was simply due to my brew not being up to date.

I updated brew and re-installed the components listed at https://facebook.github.io/react-native/docs/getting-started.html#content and it was happy again.

like image 161
Phillip Gentry Avatar answered Jul 26 '26 08:07

Phillip Gentry



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!