每当我跑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'
感谢任何帮助。
答案 0 :(得分:0)
根据您评论中的其他信息,我认为这可能是一个弹簧缓存问题,请尝试使用spring spring:spring stop然后重试运行应用程序