繁体   English   中英

耙资产:预编译

[英]Rake assets:precompile

C:\Sites\dtr-payroll>rake assets:precompile
rake aborted!
You have already activated rake 10.0.4, but your Gemfile requires rake 10.0.3. Using bundle exec may solve this.
C:/Sites/dtr-payroll/config/boot.rb:6:in `<top (required)>'
C:/Sites/dtr-payroll/config/application.rb:1:in `<top (required)>'
C:/Sites/dtr-payroll/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)

你应该首先删除你的Gemfile.lock文件并再次bundle install然后使用

rake assets:precompile

这是因为你已经激活了rake 10.0.4,但在你的Gemfile.lock文件中它是rake 10.0.3所以要么你改了它,要么删除了Gemfile.lock文件。

通过将您的佣金更新为10.0.4

bundle update rake

这会解决它

请试试

捆绑exec rake资产:预编译

你应该先谷歌吧

你可以使用bundle exec rake资产:如果你更新数据库迁移就预编译,你可以使用:bundle exec rake db:migrate

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM