Sprockets :: FileNotFound:找不到文件’jquery’openproject

我试图在Windows 7 64位中安装openproject。

我按照openproject wiki中提到的步骤进行操作,但无法成功安装,请参阅错误日志

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) 

当我尝试这个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) 

现在我在安装的最后一步走投无路。 任何人帮我解决这个问题。

提前致谢。

在dcde12a2277中添加了jquery-migrate,它不是当前稳定分支的一部分。 它目前只是dev分支的一部分(很快将是4.0)。 所以你似乎在dev分支上。

鉴于OP 4.0将很快发布,我建议你坚持使用dev分支,这样你就可以节省从3.0升级到4.0的工作。

如果您不打算成为Windows用户,如果您打算使用即将发布的4.0版本, Martin的建议是正确的,您需要安装bower。 凉亭页面解释了如何。