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 2828
逝去的感伤
逝去的感伤 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 13:51

    The error states that "Cannot find module '@angular-devkit/build-angular/package.json'" which means you have to have that package added.

    1. install the latest npm

      npm install -g npm@latest

    2. add the missing

      npm install --save-dev @angular-devkit/build-angular

提交回复
热议问题