material-ui: Installation bug Cannot find peer dependency @mui/zero-runtime

Steps to reproduce

Link to live example: (required)

Steps:

  1. I followed the installation guide and run npm install @mui/material @emotion/react @emotion/styled
  2. Then, I got this error image

Current behavior

image

Expected behavior

Successful installation of @mui/material

Context

No response

Your environment

npx @mui/envinfo
  Don't forget to mention which browser you used.
  Output from `npx @mui/envinfo` goes here.

Search keywords: installation bug

About this issue

  • Original URL
  • State: closed
  • Created 5 months ago
  • Reactions: 14
  • Comments: 17 (4 by maintainers)

Commits related to this issue

Most upvoted comments

Any updates on this one? (just kidding)

I changed the latest tag to point to the previous version, Material UI v5.15.8 is corrupted.

npm dist-tag add @mui/material@5.15.7 latest

https://www.npmjs.com/package/@mui/material?activeTab=versions

Root problem seems to https://github.com/mui/material-ui/pull/40854#discussion_r1471049262

I’m reopening per https://github.com/mui/material-ui/pull/40971#issuecomment-1933839859, problem isn’t solved yet. Since this breaks new installations, issues should be closed once released.

For regular issues, its fine to close even before release.

Interim workaround is to go a patch release down - npm i @mui/material@5.15.7