ruby-on-rails – 安装json(1.8.6)时发生错误,Bundler无法继续

我试图运行bundle install命令,我得到以下错误.在阅读了一些stackoverflow帖子后,我还运行了bundle更新.

我仍然得到json~1.8.6 gem的问题(我猜).

An error occurred while installing json (1.8.6), and Bundler cannot
continue. Make sure that gem install json -v '1.8.6' succeeds before
bundling.
Here the issue is not getting installation done properly.

《ruby-on-rails – 安装json(1.8.6)时发生错误,Bundler无法继续》

《ruby-on-rails – 安装json(1.8.6)时发生错误,Bundler无法继续》

最佳答案 较旧版本的json gem与较新的ruby有一些不兼容性.尝试更新json gem bundle update json

点赞