当我运行bundle install
时,出现了以下错误:
Could not verify the SSL certificate for https://rubygems.org/.
There is a chance you are experiencing a man-in-the-middle attack, but most likely
your system doesn't have the CA certificates needed for verification. For
information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using
SSL, edit your Gemfile sources and change 'https' to 'http'.
然而,这只发生在我的一个项目中,并且似乎只有我遇到了这个问题。此外,我可以通过运行bundle update
来解决它,在那里我不会遇到这个错误,并且之后可以继续进行。
是否有什么东西没有被项目跟踪(只存在于我的机器上),我已经配置错误了吗?
gem update --system
,如果你在MAC上,请尝试输入rvm osx-ssl-certs update
。 - Nobita