I get this error:Cannot find module '@angular-devkit/build-angular/package.json when I try run my app with ng serve from Linux

前端 未结 10 2871
逝去的感伤
逝去的感伤 2021-02-19 13:30

hello guys I have this next error when I try run my App from the terminal(linux), when I run this command:

ng serve

and I get this

10条回答
  •  星月不相逢
    2021-02-19 14:02

    I have faced this issue when i recently upgraded the Angular CLI to Angular 9. the following commands fixed the issue.

    npm install --save-dev @angular-devkit/build-angular
    npm install
    ng serve -o
    

提交回复
热议问题