Skip to content

Commit

Permalink
Fix blocks mixed up between mac, linux and windows in Getting Started…
Browse files Browse the repository at this point in the history
… doc

Summary:
Fixes #11220
Closes #11229

Differential Revision: D4253097

Pulled By: hramos

fbshipit-source-id: 9821912e25cbf2f3a5a86ea8dc27a85d070af34f
  • Loading branch information
hramos authored and Facebook Github Bot committed Dec 2, 2016
1 parent 0a66ace commit 9646358
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.
<block class="windows linux android" />

### The React Native CLI

Node.js comes with npm, which lets you install the React Native command line interface.

<block class="mac ios android" />

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`.
<block class="mac ios" />
Expand Down

0 comments on commit 9646358

Please sign in to comment.