owaspsamm / dashboard-webapp

21 stars 8 forks source link

An unhandled exception occurred: Cannot find module '@angular-devkit/build-angul ar/package.json' #2

Closed Joda-repo closed 3 years ago

Joda-repo commented 3 years ago

Hi! I get an error when try to use

ng serve

in /(dashboard-webapp) directory

An unhandled exception occurred: Cannot find module '@angular-devkit/build-angul ar/package.json' Require stack:

  • /usr/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node /node-modules-architect-host.js
  • /usr/lib/node_modules/@angular/cli/node_modules/@angular-devkit/architect/node /index.js
  • /usr/lib/node_modules/@angular/cli/models/architect-command.js
  • /usr/lib/node_modules/@angular/cli/commands/serve-impl.js
  • /usr/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/too ls/export-ref.js
  • /usr/lib/node_modules/@angular/cli/node_modules/@angular-devkit/schematics/too ls/index.js
  • /usr/lib/node_modules/@angular/cli/utilities/json-schema.js
  • /usr/lib/node_modules/@angular/cli/models/command-runner.js
  • /usr/lib/node_modules/@angular/cli/lib/cli/index.js
  • /usr/lib/node_modules/@angular/cli/lib/init.js
  • /usr/lib/node_modules/@angular/cli/bin/ng See "/tmp/ng-xTCA6r/angular-errors.log" for further details.

Then i install module

sudo npm install -g --save-dev @angular-devkit/build-angul

When try to start ng serve in /(dashboard-webapp) it's return.

You seem to not be depending on "@angular/core" and/or "rxjs". This is an error.

Could you please help me to understand what I do wrong ?