Could not find rake with bundle exec
19,051
I had the same issue, with exactly the same error message, with the same Ruby version yesterday. I solved it by removing this line from .bundle/config
in my repository:
BUNDLE_DISABLE_SHARED_GEMS: '1'
Author by
Benjamin
Updated on June 21, 2022Comments
-
Benjamin almost 2 years
When I try execute 'bundle exec rake anything', I get error:
Could not find rake-10.1.0 in any of the sources. Run `bundle install` to install missing gems.
But when I execute simple 'rake anything', rake is working.
Of cause, I tried setup gem any way, which I know:
- gem install rake -v=10.1.0
- Wrote "gem 'rake', '10.1.0'" in Gemfile, then execute bundle install
- I installed gem for all rvm: rvm all do gem install rake -v 10.1.0
This situation really frustration, because simple rake works, but with bundle exec doesn't want.
I need execute rake with bundle exec
Really need your help!
-
NoLiver92 over 10 yearswhere is .bundle/config?
-
mp. over 10 yearsNot sure for you, mine was in the Rails project root directory. I guess it depends on the specific configuration.