hicknhack-software / redmine_hourglass

New Redmine plugin to enhance the time tracking abilities, reports and REST-API.
Other
78 stars 30 forks source link

Error installing in redmine docker - Could not find a JavaScript runtime #147

Closed EnricoBeltramo closed 3 years ago

EnricoBeltramo commented 3 years ago

I tried to use the plugin inside a redmine docker so:

But I get this error: ExecJS::RuntimeUnavailable: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes. /usr/local/bundle/gems/execjs-2.8.1/lib/execjs/runtimes.rb:58:in autodetect' /usr/local/bundle/gems/execjs-2.8.1/lib/execjs.rb:5:in' /usr/local/bundle/gems/execjs-2.8.1/lib/execjs.rb:4:in <top (required)>' /usr/local/bundle/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:inrequire' /usr/local/bundle/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in block in require' /usr/local/bundle/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:257:inload_dependency' /usr/local/bundle/gems/activesupport-5.2.5/lib/active_support/dependencies.rb:291:in require' /usr/local/bundle/gems/uglifier-4.2.0/lib/uglifier.rb:5:in<top (required)>' /usr/src/redmine/config/application.rb:18:in <top (required)>' /usr/src/redmine/Rakefile:5:inrequire' /usr/src/redmine/Rakefile:5:in <top (required)>' /usr/local/bundle/gems/rake-13.0.3/exe/rake:27:in<top (required)>' /usr/local/bin/bundle:23:in load' /usr/local/bin/bundle:23:in

' (See full trace by running task with --trace)

arBmind commented 3 years ago

Hi @EnricoBeltramo, first - thank you for trying Redmine Hourglass.

You forgot to install an execjs environment. See the 3rd point in the requirements. https://github.com/hicknhack-software/redmine_hourglass#requirements

I hope this resolves your error, otherwise feel free to open an issue again. If you have a suggestion on how to improve the documentation to prevent such errors please suggest some changes as PR.