Installing Watchman and Flow
Next up are Watchman and Flow. Again, Flow is entirely optional. If you wish to experiment with it, you're welcomed to install it. It won't hurt anything. If you'd rather skip it for now, that's totally fine as well.
From the terminal, run brew install watchman
:
And if you wish, run brew install flow
.
Installing the React Native CLI
Okay! We're almost done with installing everything. There's just one more it we need: the React Native CLI. Again, from the terminal, run npm install -g react-native-cli
. Using npm, this will globally (-g
) install the React Native CLI that you'll use to scaffold your React Native applications. However, don't be surprised if you see an error that looks like the following:
This is pretty common permission error. One way to get around this is by prefacing the command with sudo
, which will required you type your password. However, we can fix our permissions pretty easily so that sudo
is unnecessary. Here are the steps:
Type in
npm config get...