# Bug OP-9719 - Plugin Installation: Angular fronted doesn't compile

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-9719

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date | 2022-01-21 –  |
| Priority | High |
| Module |  |
| Target versions | 12.0.7 |
| Observed in versions | 12.0.0 |
| Sprint | 12.0.7 |
| Backlog bucket |  |
| Bug found in version (deprecated) | 12.0.x |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

### **Environment**:

OpenProject Version: 12.0.6 BIM

On Debian 11

### **Steps to reproduce:**

1.  install openproject via deb following the guide: <https://www.openproject.org/docs/installation-and-operations/installation/packaged/#debian-11>
2.  install custom plugin following the guide: <https://www.openproject.org/docs/installation-and-operations/configuration/plugins/>
3.  fix bug following the suggestion here: <https://community.openproject.org/projects/openproject/work_packages/35103/activity>

### **Actual Behaviour**

When recompile Angular the console outputs the following error:

``` console
An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'
Require stack:
- /opt/openproject/frontend/node_modules/@angular-devkit/architect/node/node-modules-architect-host.js
- /opt/openproject/frontend/node_modules/@angular-devkit/architect/node/index.js
- /opt/openproject/frontend/node_modules/@angular/cli/models/architect-command.js
- /opt/openproject/frontend/node_modules/@angular/cli/commands/build-impl.js
- /opt/openproject/frontend/node_modules/@angular-devkit/schematics/tools/export-ref.js
- /opt/openproject/frontend/node_modules/@angular-devkit/schematics/tools/index.js
- /opt/openproject/frontend/node_modules/@angular/cli/utilities/json-schema.js
- /opt/openproject/frontend/node_modules/@angular/cli/models/command-runner.js
- /opt/openproject/frontend/node_modules/@angular/cli/lib/cli/index.js
- /opt/openproject/frontend/node_modules/@angular/cli/lib/init.js
- /opt/openproject/frontend/node_modules/@angular/cli/bin/ng
See "/tmp/ng-zYxMKI/angular-errors.log" for further details.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! openproject-frontend@0.1.0 build: `node --max_old_space_size=4096 ./node_modules/@angular/cli/bin/ng build --configuration production --named-chunks --extract-css --source-map`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the openproject-frontend@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/openproject/.npm/_logs/2022-01-21T19_18_04_677Z-debug.log
rake aborted!
```

The issue doesn't seem to be caused by the plugin: I tried removing the custom Gemfile via `openproject config:unset CUSTOM_PLUGIN_GEMFILE` and configuring again via `openproject configure`. The same error is thrown.

I've attached the complete npm log and the entire console output.
