您好,我刚刚克隆了我的存储库,并尝试nnpm安装,我得到了这个错误
npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react@16.13.0
npm ERR! node_modules/react
npm ERR! react@"16.13.0" from the root project
npm ERR! peer react@">=16.8" from framer-motion@2.9.5
npm ERR! node_modules/framer-motion
npm ERR! framer-motion@"^2.7.5" from the root project
npm ERR! 23 more (react-dom, next, rc-drawer, react-custom-scrollbars, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.13.1 || ^17.0.0" from @mdx-js/react@1.6.22
npm ERR! node_modules/@theme-ui/mdx/node_modules/@mdx-js/react
npm ERR! @mdx-js/react@"^1.0.0" from @theme-ui/mdx@0.3.5
npm ERR! node_modules/@theme-ui/mdx
npm ERR! @theme-ui/mdx@"0.3.5" from theme-ui@0.3.5
npm ERR! node_modules/theme-ui
npm ERR! theme-ui@"^0.3.1" from the root project
npm ERR! 1 more (@theme-ui/theme-provider)
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.发布于 2021-07-18 14:26:41
因此,如果我弄清楚了,我必须更改nodejs的版本,如果是版本16,它不能工作,但它在版本14上可以工作。
https://stackoverflow.com/questions/68426596
复制相似问题