Added by Kai Koskinen almost 8 years ago
I’m trying to set the development environment and installed Debian 8.8., npm@4.6.1 and node@v7.10.0.
I’m running into following error with ‘npm run webpack’ command:
‘Failed to exec webpack script
14 verbose stack Error: openproject@0.1.0 webpack: `cd frontend && npm run webpack && cd ..`’
debug.log attached
also bower install gives the following error:
‘Failed to read /home/kai/kehitys/openproject/frontend/bower.json
Additional error details:
Unexpected end of JSON input’
It seems that bower.json is empty
How to fix these?
Replies (2)
Hello Kai,
since OpenProject 6.0., we’re no longer using bower for our installation. The current manual installation guide no longer requires bower.
Regarding your output log, the
ELIFECYCLE
error hints that webpack is killed or shut down too early. It doesn’t have any relevant output as to why that is.Can you try running webpack outside the npm script with:
Best,
Oliver
Hi Oliver,
Thanks for your answer. I followed the instructions at https://www.openproject.org/development/setting-up-development-environment/ when setting the development environment. Should I rather use the instructions you referred to? Does it apply to Debian 8.8 as well?
I wasn’t able to run webpack outside the npm script.
Should I just remove the current openproject installation and reinstall with the new instructions?
Warm regards,
Kai