Puedo ver este error cuando intenté importar algunos iconos de material-ui. Instalé algunos módulos según lo recomendado, pero aún no se solucionó.
paquete.json
"@material-ui/core": "^4.12.3", "@mui/icons-material": "^5.0.1", "@mui/lab": "^5.0.0-alpha.49",Intenté instalar /utils usando el siguiente comando,
$ npm install @mui/material/utilsERROR:
npm ERR! code ENOLOCAL npm ERR! Could not install from "@mui\material\utils" as it does not contain a package.json file. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Han\AppData\Roaming\npm-cache\_logs\2021-10-03T21_47_03_649Z-debug.log¿Hay algo que me perdí?
**Después de investigar un poco, eliminé "@material-ui/core" e instalé "@mui/core" en su lugar. Supongo que aparece este error ya que se cambió el nombre de material a mui.
"@mui/core": "^5.0.0-alpha.49", "@mui/icons-material": "^5.0.1", "@mui/lab": "^5.0.0-alpha.49", "@mui/utils": "^5.0.1",Gracias.
Pruebe este comando npm install @mui/material @emotion/react @emotion/styled