mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-06-07 07:07:37 +08:00
use https for bash links
Summary: Never a good idea to pipe a bash file from `http` into `sudo`. Using `https` mitigates some of this risk. Closes https://github.com/facebook/react-native/pull/12090 Differential Revision: D4474065 fbshipit-source-id: 99d29ae112ae0edef5bd662d439b5da673c5c79f
This commit is contained in:
committed by
Facebook Github Bot
parent
2cfb3f1f8f
commit
7cebe26681
@@ -124,7 +124,7 @@ 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`.
|
||||
> If you get an error like `Cannot find module 'npmlog'`, try installing npm directly: `curl -0 -L https://npmjs.org/install.sh | sudo sh`.
|
||||
|
||||
<block class="windows linux android" />
|
||||
|
||||
@@ -138,7 +138,7 @@ 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`.
|
||||
> If you get an error like `Cannot find module 'npmlog'`, try installing npm directly: `curl -0 -L https://npmjs.org/install.sh | sudo sh`.
|
||||
|
||||
<block class="mac ios" />
|
||||
|
||||
|
||||
Reference in New Issue
Block a user