when I try to add @angular/material
to my project I get this error.
Using Angular Cli: 7.2.1, Node 11.6.0
Cannot find module '@angular-devkit/schematics/tasks'
Error: Cannot find module '@angular-devkit/schematics/tasks'
at Function.Module._resolveFilename (internal/modules /cjs/loader.js:603:15)
at Function.Module._load (internal/modules/cjs/loader.js:529:25)
at Module.require (internal/modules/cjs/loader.js:657:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object. (/Users/ricardobaeza/Projects/node_modules/@angular/material/schematics/ng-add/index.js:10:17)
at Module._compile (internal/modules/cjs/loader.js:721:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:732:10)
at Module.load (internal/modules/cjs/loader.js:620:32)
at tryModuleLoad (internal/modules/cjs/loader.js:560:12)
at Function.Module._load (internal/modules/cjs/loader.js:552:3)
npm i @angular-devkit/schematics
– Abhishek Jan 11 at 16:43npm cache clear --force
then I triedrm -r node_modules/
npm i
but no luck – RickyBaeza Jan 11 at 16:57@angular/material @angular/cdk @angular/animations
– Abhishek Jan 11 at 17:00