Ruby on rails 在任何源代码中都找不到json-1.8.6,请运行“bundle install”安装缺少的gems
在尝试运行rails s时,我遇到了上述错误:在任何源代码中都找不到json-1.8.6。请运行Ruby on rails 在任何源代码中都找不到json-1.8.6,请运行“bundle install”安装缺少的gems,ruby-on-rails,json,ruby,rubygems,bundle,Ruby On Rails,Json,Ruby,Rubygems,Bundle,在尝试运行rails s时,我遇到了上述错误:在任何源代码中都找不到json-1.8.6。请运行bundle install以安装缺少的gems。这就是我迄今为止所尝试的: bundle install bundle update bundle exec bundle install bundle update json gem install json gem install json -v '1.8.6' 这些命令解决了这个问题: brew update brew install core
bundle install
以安装缺少的gems。这就是我迄今为止所尝试的:
bundle install
bundle update
bundle exec bundle install
bundle update json
gem install json
gem install json -v '1.8.6'
这些命令解决了这个问题:
brew update
brew install coreutils
然后我运行了
bundle安装
并正确加载了json。你能发布你的Gemfile
和Gemfile.lock吗?我无法添加我的Gemfile和Gemfile.lock,我不断收到错误消息,但与此同时,我能够解决这个问题。谢谢!