I deleted the node_modules folder and package-lock.json, and ran this:
Meteor npm install @mui/[email protected]
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: @mui/[email protected]
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/[email protected]
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/[email protected]
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: @mui/[email protected]
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/[email protected]
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?