gpt4 book ai didi

How to install compatible versions of React and Material UI?(如何安装兼容版本的Reaction和Material UI?)

转载 作者:bug小助手 更新时间:2023-10-24 22:23:25 26 4
gpt4 key购买 nike



I've attempted to install both React and Material UI as follows:

我尝试安装Reaction和Material UI,如下所示:



  1. Installed React with npm install -g create-react-app

  2. Created a project with npx create-react-app my-app

  3. CD'd into my-app

  4. Installed Material Ui with npm install @mui/material @mui/icons-material


However, I get notices such as

但是,我会收到这样的通知


6 high severity vulnerabilities

To address all issues (including breaking changes), run:
npm audit fix --force

SO I run this command and then generated more vulnerabilities.

因此,我运行此命令,然后生成了更多漏洞。


86 vulnerabilities (14 low, 21 moderate, 43 high, 8 critical)

To address issues that do not require attention, run:
npm audit fix

Running npm audit fix simply takes me back to the 6 vulnerabilities issue, so I'm stuck in a loop.

运行NPM审核修复只会将我带回6个漏洞问题,因此我陷入了循环。


As I understand it, some version of React and some version of Material UI are compatible with each other, but not the most recent version of each.

据我所知,Reaction的一些版本和Material UI的一些版本彼此兼容,但不是各自的最新版本。


So what I'd like to know is- what command can I run such that I install both compatibly?

所以我想知道的是--我可以运行什么命令来兼容地安装这两个命令?


更多回答

These are warnings. The versions you have are compatible, there’s no problem here

这些是警告。您的版本是兼容的,这里没有问题

I like to reference this blog by Dan Abramov at times likes this: overreacted.io/npm-audit-broken-by-design

我喜欢参考丹·阿布拉莫夫的这篇博客,有时喜欢这样:overreacted.io/npm-Audit-Break-by-Design

优秀答案推荐
更多回答

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com