加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

ruby-on-rails – 捆绑安装不起作用

发布时间:2020-12-17 03:33:05 所属栏目:百科 来源:网络整理
导读:我正在 Windows上开发 Ruby on Rails. 我们的本地网络出了问题,无法访问https://www.rubygems.org,好像被阻止了什么. 但我可以通过http://www.proxyfoxy.com访问它. 以下是捆绑安装的结果: $bundle install Fetching source index from 07002 Retrying fetc
我正在 Windows上开发 Ruby on Rails.

我们的本地网络出了问题,无法访问https://www.rubygems.org,好像被阻止了什么.

但我可以通过http://www.proxyfoxy.com访问它.

以下是捆绑安装的结果:

$bundle install

Fetching source index from 07002

Retrying fetcher due to error (2/4): Bundler::HTTPError Could not fetch specs from 07002

Retrying fetcher due to error (3/4): Bundler::HTTPError Could not fetch specs from 07002

Retrying fetcher due to error (4/4): Bundler::HTTPError Could not fetch specs from 07002

Could not fetch specs from 07002

有没有其他方法通过捆绑安装安装宝石?

解决方法

打开Gemfile并从中更改第一行

source 'https://www.rubygems.org'

对此

source 'http://www.rubygems.org'

从’https’中删除’s’.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读