【发布时间】:2022-01-05 02:37:14
【问题描述】:
我正在尝试按照主页上的说明安装 material UI,但出现依赖关系树错误:
C:\dev\shape-shop-front-end>npm install @mui/material
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: my-app@0.1.0
npm ERR! Found: react@16.14.0
npm ERR! node_modules/react
npm ERR! react@"^16.13.1" from the root project
npm ERR! peer react@">=16.8.0" from @emotion/react@11.7.1
npm ERR! node_modules/@emotion/react
npm ERR! node_modules/@mui/material
npm ERR! @mui/material@"*" from the root project
npm ERR!
在我的 package.json 我有 "react": "^16.13.1" 。
据我了解,此错误表示 MUI 包需要响应 16.8.0
【问题讨论】:
标签: npm material-ui