1

When I try to run a rails migration:

rails g migration AddPictureToBikes

I get this message:

Could not find sprockets-2.12.3 in any of the sources

Run bundle install to install missing gems.

This is weird because the bundle is able to be completed when I run bundle install. It even says that its using sprockets:

Using sprockets 2.12.3

I'll appreciate it if anyone could tell me how I could fix this problem.

2 Answers 2

1

You can check where your gem in question is with bundle show sprockets. Next, there is a preferred check list to do to troubleshoot bundler issues, please see Bundler issues. Hope this will solve your problem

-1

I can not add a comment, so I have to put my suggestion here. You can check your gemset to see if there is something wrong.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.