Skip to content

Instantly share code, notes, and snippets.

@eklein
Created June 20, 2013 14:30
Show Gist options
  • Save eklein/5823219 to your computer and use it in GitHub Desktop.
Save eklein/5823219 to your computer and use it in GitHub Desktop.
berks install JSON::ParserError
/Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/json-1.8.0/lib/json/common.rb:155:in `initialize': A JSON text must at least contain two octets! (JSON::ParserError)
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/json-1.8.0/lib/json/common.rb:155:in `new'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/json-1.8.0/lib/json/common.rb:155:in `parse'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/berkshelf-2.0.4/lib/berkshelf/lockfile.rb:39:in `load!'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/berkshelf-2.0.4/lib/berkshelf/lockfile.rb:31:in `initialize'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/berkshelf-2.0.4/lib/berkshelf/berksfile.rb:694:in `new'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/berkshelf-2.0.4/lib/berkshelf/berksfile.rb:694:in `lockfile'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/berkshelf-2.0.4/lib/berkshelf/berksfile.rb:426:in `install'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/berkshelf-2.0.4/lib/berkshelf/cli.rb:153:in `install'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/command.rb:27:in `run'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/invocation.rb:120:in `invoke_command'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor.rb:363:in `dispatch'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/berkshelf-2.0.4/lib/berkshelf/cli.rb:21:in `dispatch'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/thor-0.18.1/lib/thor/base.rb:439:in `start'
from /Users/eklein/.rbenv/versions/1.9.3-p429/lib/ruby/gems/1.9.1/gems/berkshelf-2.0.4/bin/berks:6:in `<top (required)>'
from /Users/eklein/.rbenv/versions/1.9.3-p429/bin/berks:23:in `load'
from /Users/eklein/.rbenv/versions/1.9.3-p429/bin/berks:23:in `<main>'
@eklein
Copy link
Author

eklein commented Jun 20, 2013

To fix this, I had to remove Berksfile.lock and re-run berks install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment