Skip to main content

ArgumentError: Malformed version number string Yarn v0.1.1 2011 Jesper Kjeldgaard

Ruby • Asked by Cloud
I have webpacker gem and yarn gem.. and I'm stuck with this error: (help please :))
# console
$ bin/rails webpacker:install
rails aborted!
ArgumentError: Malformed version number string Yarn v0.1.1 2011 Jesper Kjeldgaard
/path/to/project/bin/rails:9:in `<top (required)>'
/path/to/project/bin/spring:15:in `<top (required)>'
bin/rails:3:in `load'
bin/rails:3:in `<main>'
Tasks: TOP => webpacker:install => webpacker:check_yarn
(See full trace by running task with --trace)


Lets deal with the first problem first, that version of Yarn is pretty old.  The current version is v1.7.0.
If you installed it with brew update it with: 
brew upgrade yarn

That will either work or give you another error message to look up.

Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.