Change "paste" to "type"

Summary:
* Copy-pasting into a terminal _can_ be dangerous. [See this](https://thejh.net/misc/website-terminal-copy-paste). Thus I've changed "paste" to "type". People are probably going to do this anyway but there is not need to suggest copy-pasting `sudo`commands.
* `sudo` is not required to do a global npm install (of course you can do it). Thus I've removed the "sudo" for the flow install command. This is consistent with the general getting started page where `sudo` isn't used in front of `npm install -g` either.
Closes https://github.com/facebook/react-native/pull/7330

Differential Revision: D3252286

fb-gh-sync-id: 7d4580b6bf828e4a833e02365045f3bb9276cfef
fbshipit-source-id: 7d4580b6bf828e4a833e02365045f3bb9276cfef
This commit is contained in:
Simon Friis Vindum 2016-05-03 01:33:57 -07:00 committed by Facebook Github Bot 7
parent 8ac03077c9
commit 3e181b85b0
1 changed files with 4 additions and 4 deletions

View File

@ -21,7 +21,7 @@ See [Android Setup](/react-native/docs/android-setup.html) for details.
The first thing you need to do is to install NodeJS, a popular Javascript implementation.
Fire up the Terminal and paste the following commands to install NodeJS from the [NodeSource](https://nodesource.com/) repository:
Fire up the Terminal and type the following commands to install NodeJS from the [NodeSource](https://nodesource.com/) repository:
```sh
sudo apt-get install -y build-essential
@ -35,7 +35,7 @@ __NOTE__: The above instructions are for Ubuntu. If you're on a different distro
[watchman](https://facebook.github.io/watchman/docs/install.html) is a tool by Facebook for watching changes in the filesystem. You need to install it for better performance and avoid a node file-watching bug.
Paste the following into your terminal to compile watchman from source and install it:
Type the following into your terminal to compile watchman from source and install it:
```sh
sudo apt-get install -y automake python-dev
@ -51,10 +51,10 @@ __NOTE__: The above ```apt-get install``` line is for Ubuntu/Debian only. You mi
#### Installing Flow
Flow is a static type checker for JavaScript. To install it, paste the following in the terminal:
Flow is a static type checker for JavaScript. To install it, type the following in the terminal:
```sh
sudo npm install -g flow-bin
npm install -g flow-bin
```
## Setting up an Android Device