diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md index 7cd9e2a7c..dfb41dd5a 100644 --- a/docs/GettingStarted.md +++ b/docs/GettingStarted.md @@ -124,22 +124,20 @@ Run the following command in a Terminal: npm install -g react-native-cli ``` +> If you get an error like `Cannot find module 'npmlog'`, try installing npm directly: `curl -0 -L http://npmjs.org/install.sh | sudo sh`. + ### The React Native CLI Node.js comes with npm, which lets you install the React Native command line interface. - - Run the following command in a Terminal: ``` npm install -g react-native-cli ``` -> If you get a *permission error*, try using sudo: `sudo npm install -g react-native-cli`. - > If you get an error like `Cannot find module 'npmlog'`, try installing npm directly: `curl -0 -L http://npmjs.org/install.sh | sudo sh`.