I've attempted to install both React and Material UI as follows:
我尝试安装Reaction和Material UI,如下所示:
- Installed React with
npm install -g create-react-app
- Created a project with
npx create-react-app my-app
- CD'd into my-app
- 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
这些是警告。您的版本是兼容的,这里没有问题
我是一名优秀的程序员,十分优秀!