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)
現在我是在安裝的最後一步中進入角色。任何人都可以幫我解決這個問題。
在此先感謝。
這只是一個猜測,但從我在OpenProject源代碼中可以看到的,有一個bower.json。你運行'bower install'嗎? – Martin 2014-10-17 15:44:19
我沒有在openproject文件夾中看到任何bower.json,我簽出了openproject的穩定分支 – JackVimal 2014-10-17 17:33:12
我檢出了dev版本,然後我得到了bower.json,感謝@Martin – JackVimal 2014-10-17 23:57:46