im trying to add Angular Material to my Angular project but always getting this particular error.

I've already added
import {MatDialogModule} from '@angular/material/dialog'
@NgModule({
declarations: [
...
],
imports: [
...
MatDialogModule
into my app.module.ts
And here i am wondering what did i do wrong when every time i tried importing the material module, the error says all other module is not found
npm install --save @angular/[email protected]andnpm install --save @angular/[email protected]