Bundle fails

For https://home-assistant.io/developers/website/ at bundle with ``ruby -v = 2.3.1 I get:

Using pathutil 0.14.0
Errno::EACCES: Permission denied @ rb_sysopen - /usr/local/lib/ruby/gems/2.4.0/gems/yajl-ruby-1.2.1/.gitignore
An error occurred while installing yajl-ruby (1.2.1), and Bundler cannot continue.
Make sure that `gem install yajl-ruby -v '1.2.1'` succeeds before bundling.

In Gemfile:
  pygments.rb was resolved to 0.6.3, which depends on
    yajl-ruby

Have tried:

sudo gem install yajl-ruby
Building native extensions.  This could take a while...
Successfully installed yajl-ruby-1.3.0
Parsing documentation for yajl-ruby-1.3.0
Done installing documentation for yajl-ruby after 0 seconds
1 gem installed

And repeat bundle but same error. Not sure why it appears to be attempting to access a 2.4.0 folder. How to get past this error?

There is a known issue with yajl-ruby

and could also be related to