Can not find module “@angular-devkit/build-angular”
Running ng serve --open after creating and going into my new project "frontend" gave this error:
After creating the project, you need to run
npm install
to install all the dependencies listed in package.json
I looked inside node_modules
and apparently, only dependencies are installed, not devDependencies. With the new NPM, we need to explicitly get the devDependencies:
npm i --only=dev
If you wish to install just the devkit:
npm install @angular-devkit/build-angular
Joint idea with - ken107(github)
If you are using angular version 8 please run the below command to fix this issue.
ng update @angular/cli @angular/core