ruby-on-rails – 警告:运行`gem pristine –all`来重新生成已安装的gemspecs

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 警告:运行`gem pristine –all`来重新生成已安装的gemspecs前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
不能为我的生活摆脱这个错误 – 一直在尝试一天没有效果.宝石原始 – 没有做任何事情,也没有删除和重新安装捆绑.任何人都会遇到这个,知道该怎么办?我会外面感谢答案!

完整的错误在这里:

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.

每次运行Rails或Rails控制台时都会发生这种情况.

解决方法

如果您使用rbenv或不使用RVM,您可以卸载所有的宝石
$for i in `gem list --no-versions`; do gem uninstall -aIx $i; done

如果您有一个.bundle目录,您可以删除并重新安装捆绑包

$rm -rf .bundle && bundle
原文链接:https://www.f2er.com/ruby/271442.html

猜你在找的Ruby相关文章