could not find module @angular-devkit build-angular Solution

could not find module “@angular-devkit/build-angular” Solution

What is angular builder?

Angular provides some builders that are used by the CLI for commands such as ng build , ng test , and ng lint . Default target configurations for these and other built-in CLI builders can be found (and customized) in the “architect” section of the workspace configuration file, angular. json .

What is the use of angular JSON?

A file named angularjson at the root level of an Angular workspace provides workspace-wide and project-specific configuration defaults for build and development tools provided by the Angular CLI.

Solution

Install @angular-devkit/build-angular as dev dependency. This package is newly introduced in Angular 6.0

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

or,

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