You seem to not be depending on
"@angular/core". This is an error.
The solution is -
Try to run below commands (npm install or update)
in the your project directory, It will work-
npm install
For example,
D:\>cd \Angular
D:\Angular>ng new AngularMaterial
create AngularMaterial/e2e/app.e2e-spec.ts (298 bytes)
create AngularMaterial/e2e/app.po.ts (208 bytes)
create AngularMaterial/e2e/tsconfig.e2e.json (235 bytes)
and so on..
D:\Angular>cd AngularMaterial
D:\Angular\AngularMaterial>
D:\Angular\AngularMaterial>npm install
D:\Angular\AngularMaterial>ng serve –open
Result looks like –