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
  • 1
  • 3

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,163
  • 4
  • 41
  • 74
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
  • 905
  • 2
  • 14
  • 27