An error occurred while installing json (1.7.6), and Bundler cannot continue.

1.6k Views Asked by At

An error occurred while installing json (1.7.6), and Bundler cannot continue. Make sure that gem install json -v '1.7.6' succeeds before bundling.

2

There are 2 best solutions below

1
On

You have to update your ruby installation . Which version it is ?

check it from terminal , try

ruby -v
0
On

Might be your existing Ruby version does not support the gem. Use the gems that support by your Ruby version. If yours Ruby version is higher than 2.1.0 then degrade it to 2.1.0 then it works fine.