When running the terminal commands ng server or ng serve I'm getting this issue:
An unhandled exception occurred: Could not find module "@angular-devkit/build-angular"
Check in your package.json to see if you have this package in your devDependencies section or not
"devDependencies": {
"@angular-devkit/build-angular": "~0.803.18"
}
If exist try to
delete package-lock.json or yarn-lock.json
run
npm cache clean --force
then run
npm i
Install @angular-devkit/build-angular as dev dependency.
npm install --save-dev @angular-devkit/build-angular
or,
yarn add @angular-devkit/build-angular --dev
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With