我在Mac OSX 10.9(Mavericks)上运行curl https://npmjs.org/install.sh | sh
时遇到以下错误:
install npm@latest
curl: (60) SSL certificate problem: Invalid certificate chain
More details here: http://curl.haxx.se/docs/sslcerts.html
我该怎么解决这个问题?
我在Mac OSX 10.9(Mavericks)上运行curl https://npmjs.org/install.sh | sh
时遇到以下错误:
install npm@latest
curl: (60) SSL certificate problem: Invalid certificate chain
More details here: http://curl.haxx.se/docs/sslcerts.html
我该怎么解决这个问题?
在Mac OS X 10.9(Mavericks)上使用Safari浏览器(不是Chrome、Firefox或Opera)访问https://registry.npmjs.org
单击"显示证书"按钮,然后选中标记为"始终信任"的复选框.然后单击"继续",并在需要时输入密码.
Curl现在应该可以正确使用该URL.