AngularCLI and Angular Material (schematics) error: Collection "@angular/material" cannot be resolved

It seems broken, Temp solution, use the following version

ng add @angular/[email protected]

You can install it using:
ng generate @angular/material:dashboard --name myDashboard

For other components it will be:
ng generate @angular/material:nav --name myNav
ng generate @angular/material:table --name myTable

Info about other component schematics you can find in file, located in:
/node_modules/@angular/material/schematics/collection.json


Try the following cmds, It worked for me :

npm install --save @angular/[email protected] @angular/[email protected]

ng add @angular/[email protected]