gpt4 book ai didi

ruby-on-rails - bundle 安装错误

转载 作者:行者123 更新时间:2023-12-04 05:35:14 26 4
gpt4 key购买 nike

当我移动我的站点 do 服务器并尝试 bundle 安装时出现此错误。那是什么意思?我该做什么?

Git error: command `git reset --hard a9949c1524205928b18597f840e83478ba97c2ef` in directory
/usr/local/rvm/gems/ruby-1.9.3-p448/bundler/gems/active_admin-a9949c152420 has failed.
If this error persists you could try removing the cache directory
'/usr/local/rvm/gems/ruby-1.9.3-p448/cache/bundler/git/active_admin- d67faab65e9b74efbc8efb4a777a851e9f78b2ca'

和下一个错误:
fatal: ambiguous argument 'rails4': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions
Git error: command `git rev-parse rails4` in directory
/usr/local/rvm/gems/ruby-1.9.3-p448/cache/bundler/git/friendly_id- b6cdf0f76c0a31f3c34bb36c76f8ce70e1d6196b has failed.

最佳答案

这发生在我身上是因为 rails4active_admin 删除了分支Github 上的项目。然而,根据documentation ,您仍然必须使用 Rails 4 的 master 分支。

所以改变你的Gemfile

gem 'activeadmin', github: 'gregbell/active_admin', branch: 'rails4'


gem 'activeadmin', github: 'gregbell/active_admin'

关于ruby-on-rails - bundle 安装错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18363090/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com