From e65d5280779dd7d88f3bbe6e716cf2d382864a1f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ramos?= Date: Thu, 1 Dec 2016 20:10:13 -0800 Subject: [PATCH] Fix blocks mixed up between mac, linux and windows in Getting Started doc Summary: Fixes #11220 Closes https://github.com/facebook/react-native/pull/11229 Differential Revision: D4253097 Pulled By: hramos fbshipit-source-id: 9821912e25cbf2f3a5a86ea8dc27a85d070af34f --- docs/GettingStarted.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md index 7cd9e2a7c62..dfb41dd5a62 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`.