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
Had this exact issue on an existing Angular 10 project. The following steps resolved the issue for me:
package-lock.json
file.node_modules
folder and all of its contents.npm install
. Note that in my case I had to add the --force
flag. YMMVAt this point, ng build --prod
completed successfully for me.
npm install
run this in your terminal and done.
Please try installing the npm on a project folder. I had installed npm globally but installing the npm once again on a solution folder fixed my issue.
npm install
in the project folder will do the trick. Then do ng serve -o
In my case 2 commands helped:
npm install --save-dev @angular-devkit/build-angular
npm install --save-dev @angular-devkit/core