mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-02 09:21:44 +08:00
Added npm react-native-cli command to windows and linux
Summary: The windows and linux block didn't have the command to install react-native-cli. The command is the exact same as it is on macOS. It makes the guide a little confusing because it leaves out this critical step and it's difficult to understand whether or not this needed component was already indirectly installed in one of the other steps. Closes https://github.com/facebook/react-native/pull/11135 Differential Revision: D4236984 Pulled By: mkonicek fbshipit-source-id: dca237132df7d80b5a02eaf09faec53e13e005cb
This commit is contained in:
committed by
Facebook Github Bot
parent
fea1428d99
commit
74c754de76
@@ -118,6 +118,12 @@ choco install python2
|
||||
|
||||
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
|
||||
```
|
||||
|
||||
<block class="windows linux android" />
|
||||
|
||||
### The React Native CLI
|
||||
|
||||
Reference in New Issue
Block a user