gpt4 book ai didi

css - rake Assets :precompile not working - Windows 7

转载 作者:行者123 更新时间:2023-11-28 13:36:14 24 4
gpt4 key购买 nike

我的 css 文件和缓存有问题。现在似乎没有加载任何样式表,我读到我可以尝试使用 rake assets:precomile,但我收到错误。

当我使用 trace 运行时:

C:\Users\admin\Desktop\webapp>rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
"C:/Program Files/ruby-1.9.2/bin/ruby.exe" C:/Program Files/ruby-1.9.2/bin/rake assets:precompile:all RAILS_ENV=producti
on RAILS_GROUPS=assets --trace
rake aborted!
Command failed with status (127): ["C:/Program Files/ruby-1.9.2/bin/ruby.exe"...]
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_ru
nner'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `sh'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `sh'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:80:in `ruby'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils_ext.rb:39:in `ruby'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/actionpack-3.2.6/lib/sprockets/assets.rake:12:in `ruby_rake_task'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/actionpack-3.2.6/lib/sprockets/assets.rake:21:in `invoke_or_reboot_
rake_task'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/actionpack-3.2.6/lib/sprockets/assets.rake:29:in `block (2 levels)
in <top (required)>'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_cha
in'
C:/Program Files/ruby-1.9.2/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top
_level'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_han
dling'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_han
dling'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
C:/Program Files/ruby-1.9.2/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
C:/Program Files/ruby-1.9.2/bin/rake:19:in `load'
C:/Program Files/ruby-1.9.2/bin/rake:19:in `<main>'
Tasks: TOP => assets:precompile

有人知道如何解决这个问题吗?提前致谢。

最佳答案

状态代码 127 通常用于指示“未找到命令”。在您的情况下 ["C:/Program Files/ruby-1.9.2/bin/ruby.exe"...],未找到 ruby​​.exe。你是否正确安装了 ruby ?

关于css - rake Assets :precompile not working - Windows 7,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12955373/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com