While executing this command on terminal(Mac OS) for setup react native environment :~ npm install -g react-native-cli getting error env: node: No such file or directory
Asked
Active
Viewed 2,143 times
0
-
1Which OS are you using ? Do you have node installed ? – Kedarnag Mukanahallipatna Aug 30 '18 at 08:05
-
You can find a solution here [https://stackoverflow.com/questions/43465086/env-node-no-such-file-or-directory-in-mac](https://stackoverflow.com/questions/43465086/env-node-no-such-file-or-directory-in-mac) – Anis D Aug 30 '18 at 08:20
-
Using OS X...... – Dev karan Aug 30 '18 at 12:15
2 Answers
0
If you are using ubuntu try the command as
sudo npm install -g react-native-cli
and make sure node and nstrong textpm was installed in your system.

CodeChanger
- 7,953
- 5
- 49
- 80

Javascriptsoldier
- 61
- 6
0
It seems you don't have node installed on your system. Follow the instructions on this link
for MacOS
Install Homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Node
brew install node
Install watchman
brew install watchman
Finally install React Native CLI
npm install -g react-native-cli

hdsenevi
- 953
- 2
- 14
- 27