相关疑难解决方法(0)

Heroku推送被拒绝:在源代码中找不到jquery-rails-2.0.0

我正在尝试将Enki gem博客推向Heroku,我收到了一个错误

Could not find jquery-rails-2.0.0 in any of the sources
Run Code Online (Sandbox Code Playgroud)

但是,在我的Gemfile中

`gem 'jquery-rails'`
Run Code Online (Sandbox Code Playgroud)

我之前从未尝试使用此设置推送Enki博客.这是完整的错误消息

 Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
           Fetching gem metadata from https://rubygems.org/.......
           Could not find jquery-rails-2.0.0 in any of the sources
     !
     !     Failed to install gems via Bundler.
     !
     !     Heroku push rejected, failed to compile Ruby/rails app
Run Code Online (Sandbox Code Playgroud)

收到错误消息后,我将其添加到gemfile中

gem 'jquery-rails-2.0.0'
Run Code Online (Sandbox Code Playgroud)

我收到此错误消息

Could not find gem 'jquery-rails-2.0.0 (>= 0) java' in the gems available on this machine.
Run Code Online (Sandbox Code Playgroud)

然后我试着去做

gem install jquery-rails …
Run Code Online (Sandbox Code Playgroud)

ruby-on-rails heroku

17
推荐指数
2
解决办法
8764
查看次数

在 39 颗宝石中找不到“minitest”(>= 5.1)

情况:

我正在尝试设置 Cocoapods。

我使用的是 OSX 12.2。我已经用 Homebrew 安装了 Ruby。当我跑步时gem list minitest (5.15.0)列出。

在终端中运行pod setup失败,因为它无法minitest (>=5.1)在 39 个宝石中找到。

我注意到搜索到的目录看起来是 OSX 系统 ruby​​ 安装位置Library/Ruby/Site/2.6.0;而不是我用 Homebrew 安装的ruby 3.1.0(at )。/usr/local/opt/ruby/bin/ruby

我假设我需要做的是将终端指向ruby 3.1.0; 但是,我仔细检查了我的 .zhsrc 文件,它看起来是有序的(我是通过阅读 SO 问题以及 Ruby 和 Cocoapods 设置指南了解到这一点的 - 所以我对此可能是非常错误的)。

这是以下内容.zhsrc

export PATH="/usr/local/sbin:$PATH"

# The next line updates PATH for the Google Cloud SDK.
if [ -f '/Users/sean/Desktop/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/sean/Desktop/google-cloud-sdk/path.zsh.inc'; fi

# The next …
Run Code Online (Sandbox Code Playgroud)

ruby rubygems path cocoapods

4
推荐指数
1
解决办法
7048
查看次数

标签 统计

cocoapods ×1

heroku ×1

path ×1

ruby ×1

ruby-on-rails ×1

rubygems ×1