Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/json/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 在任何源代码中都找不到json-1.8.6,请运行“bundle install”安装缺少的gems_Ruby On Rails_Json_Ruby_Rubygems_Bundle - Fatal编程技术网

Ruby on rails 在任何源代码中都找不到json-1.8.6,请运行“bundle install”安装缺少的gems

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

在尝试运行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 coreutils

然后我运行了
bundle安装
并正确加载了json。

你能发布你的
Gemfile
Gemfile.lock吗?我无法添加我的Gemfile和Gemfile.lock,我不断收到错误消息,但与此同时,我能够解决这个问题。谢谢!