我最近尝试使用 npx create-react-app
创建一个新的 React 应用程序,但生成的应用程序有 80 多个中等漏洞。经过进一步检查,我的项目似乎使用了与稳定版 8.3.0 不同的过时版本 postcss
。有没有办法修复这些漏洞?如果是这样,我将非常感谢任何帮助或提示。
就上下文而言,这些是我正在使用的工具的版本:
这是我的package.json
:
{
"name": "my-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.12.0",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}