小编fle*_*ank的帖子

尝试使用 npm 安装 mui core 时出错

我刚刚部署了一个新的 create-react-app,但仍然收到相同的错误消息。我安装了 MUI,但收到“无法解析依赖关系树”消息

    npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: eat-blended-web@0.1.0
npm ERR! Found: react@18.1.0
npm ERR! node_modules/react
npm ERR!   react@"^18.1.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0 || ^17.0.0" from @material-ui/core@4.12.4
npm ERR! node_modules/@material-ui/core
npm ERR!   @material-ui/core@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or …
Run Code Online (Sandbox Code Playgroud)

html reactjs material-ui

2
推荐指数
2
解决办法
1万
查看次数

标签 统计

html ×1

material-ui ×1

reactjs ×1