Inexplicable npm Error with @mui and x-date-pickers
00:12 07 Oct 2025

I deleted the node_modules folder and package-lock.json, and ran this:

Meteor npm install @mui/material@7.3.4
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: myWebApp.com@1.0.0
npm error Found: @mui/material@7.3.4
npm error node_modules/@mui/material
npm error @mui/material@"7.3.4" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @mui/material@"^5.15.14 || ^6.0.0" from @mui/x-date-pickers@7.27.3
npm error node_modules/@mui/x-date-pickers
npm error @mui/x-date-pickers@"7.27.3" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

I also tried it this way:

Meteor npm install @mui/x-date-pickers@7.27.3
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: myWebApp.com@1.0.0
npm error Found: @mui/material@7.3.4
npm error node_modules/@mui/material
npm error @mui/material@"7.3.4" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @mui/material@"^5.15.14 || ^6.0.0" from @mui/x-date-pickers@7.27.3
npm error node_modules/@mui/x-date-pickers
npm error @mui/x-date-pickers@"7.27.3" from the root project

This doesn't make any sense to me so far. I'm installing just one mui package, and it seems to have a dependency on another mui package that is incompatible with it.

What am I missing?

node.js npm material-ui npm-install