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)絡有問題赵抢,不要問我哦。
能打開如下:
把這個網(wǎng)頁保存名為brew_install.rb的文件确徙,保存的位置你隨便靡菇,只要自己能找到。
則在終端輸入curl
$ curl
curl: try 'curl --help' or 'curl --manual' for more information
這樣就沒錯米愿,要是報錯厦凤,那我就不知道了!
然后在終端進入存放這個文件的目錄(這個不用我教吧)育苟,然后終端輸入
ruby brew_install.rb
然后等安裝homebrew吧较鼓!
作者:kangxx
鏈接:http://www.reibang.com/p/68efabd2e32b
來源:簡書
著作權歸作者所有。商業(yè)轉載請聯(lián)系作者獲得授權违柏,非商業(yè)轉載請注明出處博烂。