Webpacker: can't install webpacker : ruby-2.4.1/bin/ruby: No such file or directory

Created on 29 Nov 2017  路  6Comments  路  Source: rails/webpacker

Hi,
I am trying to install webpacker on my 4.2.8 rails app (ruby 2.4.1, installed with RVM).

When I do run: bundle exec rake webpacker:install

I am getting the following error
/.rvm/rubies/ruby-2.4.1/bin/ruby: No such file or directory -- ./bin/rake (LoadError)

Any clue on what could be wrong ?

Thank you for your support

Most helpful comment

Could you please run bundle install --binstubs or bundle binstubs rake and then try same command?

All 6 comments

Could you please run bundle install --binstubs or bundle binstubs rake and then try same command?

Looks like rake binstub isn't there.

Hello, I did run : bundle install --binstubs
and could install the webpacker.

Thank you very much. I have been stucked on this for a while and could not find any help on google.

Have a nice day

Awesome, you too 馃憤

I ran into the same issue and have a question: why does the rake binstub need to exist? Before using webpacker I could run rake tasks just fine. In fact I didn't even have a bin directory. All my bins usually reside in a rvm directory (/Users/Enno/.rvm/gems/ruby-2.3.1/bin/rake).

Why does this not work in this situation?

same to the above... Any response?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eriknygren picture eriknygren  路  3Comments

amandapouget picture amandapouget  路  3Comments

ilrock picture ilrock  路  3Comments

iChip picture iChip  路  3Comments

inopinatus picture inopinatus  路  3Comments