0

每当我跑步时,rails s我都会得到:

在任何来源中都找不到 multi_json-1.11.0 尝试运行bundle install

bundle install依次运行给我:

Fetching source index from https://rubygems.org/
Updating git://github.com/rails/activerecord-session_store.git
fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository
Retrying git fetch --force --quiet --tags 'git://github.com/rails/activerecord-session_store.git' "refs/heads/*:refs/heads/*" due to error (2/3): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags 'git://github.com/rails/activerecord-session_store.git' "refs/heads/*:refs/heads/*"` in directory /usr/local/rvm/gems/cache/bundler/git/activerecord-session_store-cf0cfe22b7614cc4fcd416e139ff2bd62ebd6f1d has failed.
If this error persists you could try removing the cache directory '/usr/local/rvm/gems/ruby-2.1.2@global/cache/bundler/git/activerecord-session_store-cf0cfe22b7614cc4fcd416e139ff2bd62ebd6f1d'
fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository
Retrying git fetch --force --quiet --tags 'git://github.com/rails/activerecord-session_store.git' "refs/heads/*:refs/heads/*" due to error (3/3): Bundler::Source::Git::GitCommandError Git error: command `git fetch --force --quiet --tags 'git://github.com/rails/activerecord-session_store.git' "refs/heads/*:refs/heads/*"` in directory /usr/local/rvm/gems/cache/bundler/git/activerecord-session_store-cf0cfe22b7614cc4fcd416e139ff2bd62ebd6f1d has failed.
If this error persists you could try removing the cache directory '/usr/local/rvm/gems/ruby-2.1.2@global/cache/bundler/git/activerecord-session_store-cf0cfe22b7614cc4fcd416e139ff2bd62ebd6f1d'
fatal: Refusing to fetch into current branch refs/heads/master of non-bare repository
Git error: command `git fetch --force --quiet --tags
'git://github.com/rails/activerecord-session_store.git'
"refs/heads/*:refs/heads/*"` in directory
/usr/local/rvm/gems/cache/bundler/git/activerecord-session_store-cf0cfe22b7614cc4fcd416e139ff2bd62ebd6f1d
has failed.
If this error persists you could try removing the cache directory
'/usr/local/rvm/gems/ruby-2.1.2@global/cache/bundler/git/activerecord-session_store-cf0cfe22b7614cc4fcd416e139ff2bd62ebd6f1d'

任何帮助表示赞赏。

4

1 回答 1

0

根据您评论中的其他信息,我认为这可能是弹簧缓存问题,请尝试使用以下命令停止弹簧:弹簧停止,然后重试运行您的应用程序

于 2015-04-20T17:52:33.297 回答