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
The error states that "Cannot find module '@angular-devkit/build-angular/package.json'" which means you have to have that package added.
install the latest npm
npm install -g npm@latest
add the missing
npm install --save-dev @angular-devkit/build-angular
Under the project directory run the following command
npm install --save-dev @angular-devkit/build-angular
In my case running npm install
in project folder solved the problem.
In my case these 2 commands helped:
npm install -g npm@latest
npm install -g @angular/cli
Install @angular-devkit/build-angular as dev dependency. This package is newly introduced.
npm i @angular-devkit/build-angular
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