learn-co-curriculum / example-sinatra-assessment

Other
5 stars 158 forks source link

Bundler Error #2

Open mlgvla opened 4 years ago

mlgvla commented 4 years ago

I get this error:

An error occurred while installing json (1.8.3), and Bundler cannot continue. Make sure that gem install json -v '1.8.3' --source 'http://rubygems.org/' succeeds before bundling.

So, I can't migrate the database or run the app.

danainjax commented 4 years ago

Same issue

Never2Far commented 4 years ago

This is just a workaround a found on Google.

in your terminal type: gem info json

make note of the version number listed with the word default next to it (the others might work too, I just didn't try them).

open the Gemfile.lock file and find the json entry. replace the existing version number with the one noted above.

save the file, and try running bundle install again.

hope this helps!