New Rails Project: 'bundle install' can't install rails in gemfile

前端 未结 9 1633
不知归路
不知归路 2020-12-11 06:37

I have installed a new rails project like so:

$ rails new site

and it executes and reaches:

bundle install
<
9条回答
  •  粉色の甜心
    2020-12-11 07:02

    None of these worked for me. I came up with my own solution. The problem lies in json versions less than 2.0. When I tried to upgrade json, I got an error message about dependency issues with rails and sdoc. Here's what I ended up doing:

    1. Open your Gemfile.
    2. Comment out the lines for sdoc and rails.
    3. Add this line: gem 'json', '> 2'
    4. Run bundle install.

    Worked for me.

提交回复
热议问题