From 3e181b85b0b2be9f5ed5c7ec9789f9718e532070 Mon Sep 17 00:00:00 2001 From: Simon Friis Vindum Date: Tue, 3 May 2016 01:33:57 -0700 Subject: [PATCH] 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 --- docs/GettingStartedOnLinux.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/GettingStartedOnLinux.md b/docs/GettingStartedOnLinux.md index 8d6b7e513..b86ed08fd 100644 --- a/docs/GettingStartedOnLinux.md +++ b/docs/GettingStartedOnLinux.md @@ -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