Bin/setup json problem

I am trying to do the sass-foundations lesson but can’t even get started because I keep getting errors about json when I run: bin/setup. The error is the following:

Gem files will remain installed in
/Users/tedmartin/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/json-1.8.3 for
inspection.
Results logged to
/Users/tedmartin/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/extensions/x86_64-darwin-16/2.4.0-static/json-1.8.3/gem_make.out

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

you should run gem install json -v '1.8.3' and see the actual error.

I run into same problem. Json v1.8.3 is incompatible with Ruby v2.4. I fixed bin/setup by updating versions of middleman gems in Gemfile to following versions:

  • middleman “~> 4.2.1”
  • middleman-autoprefixer “~> 2.8.0”
  • middleman-livereload “~> 3.4.6”
1 Like

I ran into this problem too. I specified ruby ‘2.3.0’ in the Gemfile and that fixed the problem.