Top Menu

Jump to content
Home
    Modules
      • Projects
      • Activity
      • Work packages
      • Gantt charts
      • Calendars
      • Team planners
      • Boards
      • News
    • Getting started
    • Introduction video
      Welcome to OpenProject Community
      Get a quick overview of project management and team collaboration with OpenProject. You can restart this video from the help menu.

    • Help and support
    • Upgrade to Enterprise edition
    • User guides
    • Videos
    • Shortcuts
    • Community forum
    • Enterprise support

    • Additional resources
    • Data privacy and security policy
    • Digital accessibility (DE)
    • OpenProject website
    • Security alerts / Newsletter
    • OpenProject blog
    • Release notes
    • Report a bug
    • Development roadmap
    • Add and edit translations
    • API documentation
  • Sign in
      Forgot your password?

      or sign in with your existing account

      Google

Side Menu

  • Overview
  • Activity
    Activity
  • Roadmap
  • Work packages
    Work packages
  • Gantt charts
    Gantt charts
  • Calendars
    Calendars
  • Team planners
    Team planners
  • Boards
    Boards
  • News
  • Forums

Content

Support Installation & Updates
  1. OpenProject
  2. Forums
  3. Support Installation & Updates
  4. npm run webpack & bower install errors

npm run webpack & bower install errors

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)

RE: npm run webpack & bower install errors - Added by Oliver Günther almost 8 years ago

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:

# in <openproject root>
cd frontend/
 ./node_modules/.bin/webpack --display-error-details --colors --progress

Best,
Oliver

RE: npm run webpack & bower install errors - Added by Kai Koskinen almost 8 years ago

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

  • (1 - 2/2)
Loading...