question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

An unhandled exception occurred: Cannot find module '@angular-devkit/build-webpack' 12.1.1

See original GitHub issue

Build error after update to 12.1.1

image

image

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>

image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
alan-agius4commented, Jul 1, 2021

Hi! Delete node_modules and package.lock fixed it for me. Thanks, but very strange. 😦

That the turning on/off a computer in Node.JS. Sometimes NPM will not hoist packages correctly when the node_modules or package.lock already exists.

0reactions
angular-automatic-lock-bot[bot]commented, Aug 1, 2021

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found