You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3

What I have in my gemfile

gem 'rake', '10 .0.3 '# first line in gemfile

Remote Gemfile.lock

Bundle update launched

Ran bundle update rake

Managed Resources: Precompilation

I get the following message:

You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3. 

Package Output Result:

Gems included in the kit:

 .... * rake (10.0.3) 

Any ideas why I am getting this error message (the procedure I followed is a short summary of the Stackoverflow recommendations)?

+4
source share
1 answer

Use bundle exec opposite your command

 bundle exec rake assets:precompile 

This will solve your problem.

 I always recommend to use "bundle exec" before any such kind of commands. 
+5
source

Source: https://habr.com/ru/post/1485740/


All Articles