按照meteor官方說明安裝的時候,在OSX下報出以下證書無效錯誤:
curl https://install.meteor.com/ | sh
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 6675 0 6675 0 0 1068 0 --:--:-- 0:00:06 --:--:-- 1412
Downloading Meteor distribution
curl: (60) SSL certificate problem: Invalid certificate chain
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.
Installation failed.
解決辦法,在curl官網下載cacert.pem證書
https://curl.haxx.se/docs/caextract.html
然後執行指定證書:
curl -fsSL --cacert ./cacert.pem https://install.meteor.com/ | sh
Downloading Meteor distribution
######################################################################## 100.0%
Meteor 1.3.2.4 has been installed in your home directory (~/.meteor).
Writing a launcher script to /usr/local/bin/meteor for your convenience.
To get started fast:
$ meteor create ~/my_cool_app
$ cd ~/my_cool_app
$ meteor
Or see the docs at:
docs.meteor.com
安裝成功。