[Fixed] Could Not Find Module “@angular-devkit/build-angular”

Sometimes we get frustrated if we do not get the information we need in some articles. But this article has all the information you need when you read [Fixed] Could Not Find Module “@angular-devkit/build-angular”. Read patiently and understand.

Could Not Find Module “@angular-devkit/build-angular” is very popular.  Google on the web, one can get tons of results of questions and answers. This article will give a fix to this Angular exception, and discuss a little bit about the reason and other possible solutions.

[Fixed] Could Not Find Module “@angular-devkit/build-angular”

How to Fix Could Not Find Module “@angular-devkit/build-angular” Error?

Method 1:

  1. Go to the Angular project folder and delete “node_modules” folder
  2. Open the command prompt and navigate to the project directory
  3. Enter the command “npm -i” or “npm install”
  4. The command will install node_modules files
  5. Finally, run the project using “ng serve” command

Hurrah! The error is fixed successfully. Actually, this error occurs when dev dependency is missing which is introduced in Angular 6.0

Method 2:

If the above method didn’t worked for you don’t worry! You can fix the “Could Not Find Module “@angular-devkit/build-angular”” error using this method.

1st Step: Delete the node_modules folder manually from the project.

npm rm -rf node_modules

2nd Step: Clear the npm cache using the command

npm cache clean --force

3rd Step: Then try to install node_modules using the following command

npm i

After using this command the fresh node_modules gets installed and then run the project.

Read Also: How to Check Angular CLI Version?

FAQ

What Is Angular-DevKit?

DevKit provides a large set of libraries that are used for managing, developing, deploying and analyzing code. Angular CLI is built on top of Angular DevKit.

Final Words

We hope the [Fixed] Could Not Find Module “@angular-devkit/build-angular” article helped you in some way. And let us know if you have any doubts. Thanks

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coding Deekshi. Here, I post about programming to help developers.

Share on:

3 thoughts on “[Fixed] Could Not Find Module “@angular-devkit/build-angular””

Leave a Comment