2014-10-16 25 views
1

我試圖在Windows 7 64位安裝openproject。Sprockets :: FileNotFound:找不到文件'jquery'openproject

我跟着openproject維基提到的步驟,但無法成功安裝它,請參閱錯誤日誌

openproject>bundle exec rake assets:precompile 
DL is deprecated, please use Fiddle 
require 'rails/all'... 1.887s 
Bundler.require... 4.181s 
*** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansic 
on/) to get coloured output on Windows 
Application.initialize!... [deprecated] I18n.enforce_available_locales will defa 
ult to true in the future. If you really want to skip validation of your locale 
you can set I18n.enforce_available_locales = false to avoid this message. 
13.447s 
rake aborted! 
Sprockets::FileNotFound: couldn't find file 'jquery' 
    (in C:/OpenProject/openproject/app/assets/javascripts/application.js.erb:13) 

Tasks: TOP => assets:precompile 
(See full trace by running task with --trace) 

當我試圖this Stakeoverflow解決方案,我得到了以下錯誤

openproject>bundle exec rake assets:clean assets:precompile 
DL is deprecated, please use Fiddle 
require 'rails/all'... 1.934s 
Bundler.require... 4.321s 
*** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansic 
on/) to get coloured output on Windows 
Application.initialize!... [deprecated] I18n.enforce_available_locales will defa 
ult to true in the future. If you really want to skip validation of your locale 
you can set I18n.enforce_available_locales = false to avoid this message. 
13.135s 
rake aborted! 
Sprockets::FileNotFound: couldn't find file 'jquery-migrate/jquery-migrate' 
    (in C:/OpenProject/openproject/app/assets/javascripts/application.js.erb:14) 

Tasks: TOP => assets:precompile 
(See full trace by running task with --trace) 

現在我是在安裝的最後一步中進入角色。任何人都可以幫我解決這個問題。

在此先感謝。

+0

這只是一個猜測,但從我在OpenProject源代碼中可以看到的,有一個bower.json。你運行'bower install'嗎? – Martin 2014-10-17 15:44:19

+0

我沒有在openproject文件夾中看到任何bower.json,我簽出了openproject的穩定分支 – JackVimal 2014-10-17 17:33:12

+0

我檢出了dev版本,然後我得到了bower.json,感謝@Martin – JackVimal 2014-10-17 23:57:46

回答

1

dcde12a2277中增加了jquery-migrate,它不是當前穩定分支的一部分。它目前只是開發部門的一部分(很快會是4.0)。所以你似乎在開發分支。

鑑於OP 4.0將很快發佈,我建議您堅持使用開發分支,以便您可以節省從3.0升級到4.0的工作。

我自己並不是Windows用戶,如果您打算使用即將推出的4.0版本,Martin的建議是正確的,您將需要安裝bower。 bower頁面解釋瞭如何。

相關問題