close

[Solved] Error: Could not find module “@angular-devkit/build-angular”

Hello Guys, How are you all? Hope You all Are Fine. Today I am trying to run ng-serve but I am facing following error: Error: Could not find module “@angular-devkit/build-angular” in Angular. So Here I am Explain to you all the possible solutions here.

Without wasting your time, Let’s start This Article to Solve This Error.

How Error: Could not find module “@angular-devkit/build-angular” Error Occurs ?

I am trying to run ng-serve but I am facing following error.

Could not find module “@angular-devkit/build-angular” from “D:\MyProject\NfcApp”.
Error: Could not find module “@angular-devkit/build-angular” from “D:\MyProject\NfcApp”.

How To Solve Error: Could not find module “@angular-devkit/build-angular” Error ?

  1. How To Solve Error: Could not find module “@angular-devkit/build-angular” Error ?

    To Solve Error: Could not find module “@angular-devkit/build-angular” Error If You are using Angular 6 and above then first of all delete your node_modules folder and then just run this command: npm install Then ng update Then run npm update Now, Your error will be solved.

  2. Error: Could not find module “@angular-devkit/build-angular”

    To Solve Error: Could not find module “@angular-devkit/build-angular” Error You Just need to Install angular-devkit/build-angula. If You are using npm then just run this command: npm install –save-dev @angular-devkit/build-angular If you are using yarn then just run this command: yarn add @angular-devkit/build-angular –dev Now, Your error must be solved.

Solution 1: Install angular-devkit/build-angula

You Just need to Install angular-devkit/build-angula. If You are using npm then just run this command.

npm install --save-dev @angular-devkit/build-angular

If you are using yarn then just run this command.

yarn add @angular-devkit/build-angular --dev

Now, Your error must be solved.

Solution 2: Angular 6+

If You are using Angular 6 and above then first of all delete your node_modules folder and then just run this command.

npm install

Then,

ng update

Then run,

npm update

Now, Your error will be solved.

Summary

It’s all About this issue. Hope all solution helped you a lot. Comment below Your thoughts and your queries. Also, Comment below which solution worked for you?

Also, Read

Leave a Comment