react native搭建環(huán)境,安裝homebrew的時候,在終端輸入
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
提示:
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation
解決方法:
這個是stackoverflow的解決方法,英文的,我翻譯了一下
我的翻譯:
先在瀏覽器輸入這個地址:
https://raw.githubusercontent.com/Homebrew/install/master/install
看是否能打開,不能打開就是你網(wǎng)絡(luò)有問題,不要問我哦。
能打開如下:

把這個網(wǎng)頁保存名為brew_install.rb的文件,保存的位置你隨便,只要自己能找到。
則在終端輸入curl
$ curl
curl: try 'curl --help' or 'curl --manual' for more information
這樣就沒錯,要是報錯,那我就不知道了!
然后在終端進(jìn)入存放這個文件的目錄(這個不用我教吧),然后終端輸入
ruby brew_install.rb
然后等安裝homebrew吧!