Windows中 AndroidStudio Terminal 下 curl命令


curl --- 百度百科

curl是利用URL語法在命令行方式下工做的開源文件傳輸工具。它被普遍應用在Unix、多種Linux發行版中,而且有DOS和Win3二、Win64下的移植版本。html


AndroidStudio配置ReactNative環境時,執行下載.flowconfig文件命令時react

curl --insecure -o .flowconfig https://raw.githubusercontent...git


報錯:github

curl: (60) SSL certificate problem: unable to get local issuer certificate  
More details here: http://curl.haxx.se/docs/sslcerts.html  
  
curl performs SSL certificate verification by default, using a "bundle"  
of Certificate Authority (CA) public keys (CA certs). If the default  
bundle file isn't adequate, you can specify an alternate file  
using the --cacert option.  
If this HTTPS server uses a certificate signed by a CA represented in  
the bundle, the certificate verification probably failed due to a  
problem with the certificate (it might be expired, or the name might  
not match the domain name in the URL).  
If you'd like to turn off curl's verification of the certificate, use  
the -k (or --insecure) option.

由於SSL證書報錯,關閉證書驗證便可:react-native

curl --insecure -o .flowconfig https://raw.githubusercontent.com/facebook/react-native/master/.flowconfig
相關文章
相關標籤/搜索