An unhandled exception occurred: Cannot find module '@angular-devkit/build-webpack' 12.1.1
See original GitHub issueBuild error after update to 12.1.1


An unhandled exception occurred: Cannot find module '@angular-devkit/build-webpack'
Require stack:
- D:\Go\freicon\web\node_modules\@angular-devkit\build-angular\src\dev-server\index.js
- D:\Go\freicon\web\node_modules\@angular-devkit\architect\node\node-modules-architect-host.js
- D:\Go\freicon\web\node_modules\@angular-devkit\architect\node\index.js
- D:\Go\freicon\web\node_modules\@angular\cli\models\architect-command.js
- D:\Go\freicon\web\node_modules\@angular\cli\commands\serve-impl.js
- D:\Go\freicon\web\node_modules\@angular-devkit\schematics\tools\export-ref.js
- D:\Go\freicon\web\node_modules\@angular-devkit\schematics\tools\index.js
- D:\Go\freicon\web\node_modules\@angular\cli\utilities\json-schema.js
- D:\Go\freicon\web\node_modules\@angular\cli\models\command-runner.js
- D:\Go\freicon\web\node_modules\@angular\cli\lib\cli\index.js
- D:\Go\freicon\web\node_modules\@angular\cli\lib\init.js
- D:\Go\freicon\web\node_modules\@angular\cli\bin\ng
See "C:\Users\Andy\AppData\Local\Temp\ng-tCGKQ6\angular-errors.log" for further details.
Process finished with exit code 127
Angular CLI: 12.1.0
Node: 16.4.0 (Unsupported)
Package Manager: npm 7.19.0
OS: win32 x64
Angular: 12.1.1
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router, service-worker
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1201.0
@angular-devkit/build-angular 12.1.0
@angular-devkit/core 12.1.0
@angular-devkit/schematics 12.1.0
@angular/cdk 12.1.0
@angular/cli 12.1.0
@angular/pwa 0.803.29
@schematics/angular 12.1.0
rxjs 6.6.7
typescript 4.2.4
Warning: The current version of Node (16.4.0) is not supported by Angular.
PS D:\Go\freicon\web>

Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Could not find module "@angular-devkit/build ... - Stack Overflow
After updating to Angular 6.0.1, I get the following error on ng serve : Could not find module "@angular-devkit/build-angular" from ...
Read more >Fixing Could not find module @angular-devkit/build-angular ...
Fixing Could not find module @angular-devkit/build-angular error in Angular · Solution 1: Delete node_modules folder and run npm install.
Read more >An unhandled exception occurred: Cannot find ... - GitHub
Build error after update to 12.1.1 An unhandled exception occurred: Cannot find module '@angular-devkit/build-webpack' Require stack: ...
Read more >Could not find module '@angular-devkit/build-angular'
To solve the error "Could not find module '@angular-devkit/build-angular'", make sure to install the package by opening your terminal in your project's root ......
Read more >Exception - Could Not Find Module “@angular-devkit/build ...
This error occurs because of missing dev dependency which is introduced newly in Angular 6.0 and above. ... In most of the cases,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

That the turning on/off a computer in Node.JS. Sometimes NPM will not hoist packages correctly when the
node_modulesorpackage.lockalready exists.This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.