當bundle exec rake assets:precompile
在我們的Rails 3.2.8應用程序,它與錯誤而導致失敗:耙資產:預編譯失敗軌3.2.8在Windows 8
** Execute tmp:cache:clear
** Execute assets:precompile:primary
rake aborted!
(in c:/D/code/rails_proj/biz-tools/app/assets/javascripts/application.js)
c:/Ruby193/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:142:in `exec_runtime'
c:/Ruby193/lib/ruby/gems/1.9.1/gems/execjs-1.4.0/lib/execjs/external_runtime.rb:28:in `block in exec'
...........
c:/Ruby193/bin/rake:23:in `<main>'
Tasks: TOP => assets:precompile:primary
rake aborted!
Command failed with status (1): [c:/Ruby193/bin/ruby.exe c:/Ruby193/bin/rak...]
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:53:in `block in create_shell_runner'
c:/Ruby193/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/file_utils.rb:45:in `call'
application.js中只有兩個datapicker,它們在啓動應用程序時工作正常。什麼可能導致這種失敗?謝謝。
看起來您可能需要安裝'sprockets'(和/或'rake')。 –
安裝了鏈輪和耙子。錯誤是一樣的。 – user938363