Solution - Angular CLI MODULE_NOT_FOUND Error

Introduction

When we sometimes create a new project but can't create the project because of an error like the one below. Here I have provided steps to resolve the issue.

Angular CLI MODULE_NOT_FOUND Error

Step 1

Run CMD as Run as administrator mode.

Step 2

Uninstall angular cli.

npm uninstall -g @angular/cli

Step 3

Remove npm package files from the appdata folder.

Step 4

Open Run option by pressing Windows + R key. Then type %appdata% and press OK.

Step 5

Open the npm folder from the Roaming folder that you got in explorer.

Step 6

Delete ng and ng.cmd files from the npm folder if exists.

Open node_modules folder from there and delete @angular and angular/cli folder if exists.

Step 7

Reinstall the angular cli

npm install -g @angular/cli

 Create a new Project with the use of command 

Angular CLI MODULE_NOT_FOUND Error

App is created and run with ng serve command like this

Angular CLI MODULE_NOT_FOUND Error