Steps to reproduce the problem:
1) go to github.com/angular/material.angular.io and clone it
2) read the Readme.md, carefully follow all instructions you find in the web, clone the material2, fetch local, etc.
3) 'ng serve' and see a lot of compilation errors.
4) (optional) let's cry together
Amaan Kulshreshtha
Try this:
1.) Once the project is on your machine, open cmd/terminal and run:-
For cmd
npm install -g npm@5.6.0For terminal
sudo npm install -g npm@5.6.02.) Verify the npm version once it is installed by running:
npm -vThis should print out
5.6.03.) Enter the project folder via your command-line and run
npm install4.) Then run
ng serveYour app will run without any compilation errors.