首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在react 17.0.2中使用时出现radium安装错误

在react 17.0.2中使用时出现radium安装错误
EN

Stack Overflow用户
提问于 2021-04-10 00:57:02
回答 1查看 237关注 0票数 2

当我尝试用npm安装radium时,我得到了一个依赖树错误。

我正在使用的命令:

代码语言:javascript
复制
 npm install --save radium

这是我得到的错误堆栈-

代码语言:javascript
复制
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: 
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"^17.0.2" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.8.0" from radium@0.26.1

我不希望强制将我的react版本降级到16.8.0。我该如何解决这个问题?

EN

回答 1

Stack Overflow用户

发布于 2021-04-19 22:20:02

使用npm install --save radium --force

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

https://stackoverflow.com/questions/67025267

复制
相关文章

相似问题

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