Warning: Running `gem pristine --all` to regenerate your installed gemspecs

一世执手 提交于 2020-01-31 04:32:50

问题


Cannot for the life of me get rid of this error - been trying for a day to no avail. gem pristine --all did nothing, and neither did deleting and reinstalling bundle. Anyone else come across this and know what to do? I would be externally grateful for the answer!

The full error is here:

Warning: Running gem pristine --all to regenerate your installed gem specs(and deleting then reinstalling your bundle if you use bundle --path) will improve the startup performance of Spring.

and this happens every time I run Rails, or Rails console.


回答1:


I actually had to delete the gems directory in my rvm bundle cache directory. For me that was:

rm -rf ~/.rvm/gems/ruby-1.9.3-p392@<my-gemset-name-here>/bundler/gems.

After that I redid the following:

gem pristine --all
bundle install
bundle exec spring binstub --all

and now it works fine.




回答2:


If you use rbenv or nothing instead of RVM, you can uninstall all your gems with

$ for i in `gem list --no-versions`; do gem uninstall -aIx $i; done

If you have a .bundle directory you can delete and reinstall your bundle with

$ rm -rf .bundle && bundle


来源:https://stackoverflow.com/questions/22387196/warning-running-gem-pristine-all-to-regenerate-your-installed-gemspecs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!