setup steps
-
install nodejs
-
download form nodejs.org
-
or update
$ npm install -g n $ n latest
-
-
install homebrew
-
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
-
install watchman
$ brew install watchman
-
install flow
$ brew install flow
-
-
install react-native-cli
$ npm install -g react-native-cli
fixed
-
unable to install homebrew
-
$ sudo chown -R gree2 /usr/local/Library
-
can’t write to /usr/local/Cellar
$ sudo chown -R gree2 /usr/local/Cellar
-
it’s just not linked
$ brew link --overwrite watchman
-
-
missing write access to /usr/local/lib/node_modules
$ sudo chown -R gree2 /usr/local/lib/