This works for me very well
npm install @mui/lab
In Material UI v5 you need to install @mui/lab.My dependencies are here :
"dependencies": {
"@mui/lab": "^5.0.0-alpha.54",
"@mui/material": "^5.2.1",
}
For more information check this link