Angular CLI: Could not find the '@angular-devkit/build-angular:browser' builder's node package / Cannot find module '@angular-devkit/build-angular/package.json'
The build tooling package is missing from node_modules — dependencies were not installed or the lockfile/install is broken.
Could not find the '@angular-devkit/build-angular:browser' builder's node packageCannot find module '@angular-devkit/build-angular/package.json'Could not find the '@angular-devkit/build-angular:dev-server' builderCould not find the '@angular/build:application' builder's node packageThis is probably because of an error in your angular.json builder Meaning
ng serve and ng build load the builder from @angular-devkit/build-angular (or @angular/build). If node_modules was deleted, npm install failed partway, devDependencies were skipped (NODE_ENV=production), or the package was removed, the CLI cannot find it.
Common causes
npm installnot run after cloning- Install skipped devDependencies (production mode)
- Package removed or version mismatch after an upgrade
- Corrupted
node_modulesor a failed install - Builder changed (esbuild
@angular/build) but angular.json still points at the old one
⚡ Quick fix
- Run
npm install(install devDependencies too) - Delete
node_modulesand the lockfile if corrupted, then reinstall - Install the builder:
npm i -D @angular-devkit/build-angular
Detailed fix by platform
npm
rm -rf node_modules && npm ci(ornpm install)- Make sure devDependencies install:
npm install --include=dev
Angular CLI
ng update @angular/cli @angular/coreto align builder versions
How to diagnose
- Folder — Does node_modules/@angular-devkit exist?
- Install — Did npm install finish without errors?
- Mode — NODE_ENV=production skipping dev dependencies?
🔧 Still not fixed?
Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:
Similar errors
- Can't find stylesheet to import Angular (Sass): Error: Can't find stylesheet to import. @import 'variables';
- Component is not resolved: templateUrl Angular tests: Component 'X' is not resolved: templateUrl: ./x.component.html — Did you run and wait for 'resolveComponentResources()'?
- EmptyError RxJS: EmptyError: no elements in sequence (firstValueFrom / lastValueFrom on an empty Observable)
Most viewed in Angular
Other ways to find it
Where this error sits
Origin: On your device. Errors that are often confused with or caused by this one (click to open):
🧠 Still stuck? Analyze your error
Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.
💬 What worked for others
No tips yet — did something else fix this for you?
Share what worked for you
Tips are checked by an editor before they appear. Links are removed.
Report a correction or suggest an improvement
Last updated 15 Oct 2026