Open link in a new tab

Content

Expand project menu

Manual install crashes at RAILS_ENV="production" ./bin/rake assets:precompile - node_modules/.bin/webpack: not found rake aborted!

I’m trying to install OP on a virtual Ubuntu machine, following the manual install at
https://www.openproject.org/open-source/manual-installation/manual-installation-guide/

And when trying to run the step
RAILS_ENV=“production” ./bin/rake assets:precompile

It stops, printing:

openproject@vagrant-ubuntu-trusty-64:~/openproject-ce$ RAILS_ENV=“production” ./bin/rake assets:precompile
$(npm bin)/webpack —config webpack.config.js
sh: 1: /home/openproject/openproject-ce/frontend/node_modules/.bin/webpack: not found
rake aborted!
Command failed with status (127): [$(npm bin)/webpack —config webpack.config…]
/home/openproject/openproject-ce/lib/tasks/assets.rake:48:in `block (3 levels) in <top (required)>’
/home/openproject/openproject-ce/lib/tasks/assets.rake:47:in `chdir’
/home/openproject/openproject-ce/lib/tasks/assets.rake:47:in `block (2 levels) in <top (required)>’
Tasks: TOP => assets:precompile => assets:compile_environment => assets:webpack
(See full trace by running task with —trace)

Any idea what might cause this and how to proceed?

I saw in another post mentioning a similar error and the reply was to chech the git branch.
openproject@vagrant-ubuntu-trusty-64:~/openproject-ce$ git branch

  • stable/5
Message actions

The error hints at the npm dependencies not being complete.

Did you run npm install in the openproject-ce folder?

Best,
Oliver