首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如果nodejs版本为16.0.0,Npm install不起作用

如果nodejs版本为16.0.0,Npm install不起作用
EN

Stack Overflow用户
提问于 2021-07-18 14:26:41
回答 1查看 173关注 0票数 0

您好,我刚刚克隆了我的存储库,并尝试nnpm安装,我得到了这个错误

代码语言:javascript
复制
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.
EN

回答 1

Stack Overflow用户

发布于 2021-07-18 14:26:41

因此,如果我弄清楚了,我必须更改nodejs的版本,如果是版本16,它不能工作,但它在版本14上可以工作。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/68426596

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档