Angular Material: No project index HTML file could be found.

Hello,

I would like to install material angular (https://material.angular.io/) but I’ve some problems..
I cloned this repo and run npm install and then run npm run ng add @angular/material.
First try I install it by choose the Indigo/Pink theme and answer yes for all others options but it throws me an error:

Screenshot from 2020-04-17 21-33-01

Then, I tried to install it without theme but there is another error:

Screenshot from 2020-04-17 21-33-35

Thanks for help !

1 possible answer(s) on “Angular Material: No project index HTML file could be found.

  1. run command
    ng add @angular/material

    then add
    @import '@angular/material/prebuilt-themes/indigo-pink.css';
    to your src/styles.scss file