0

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

Dev karan
  • 3
  • 4

2 Answers2

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
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