Node.js 依赖树问题反应-材料表
我在尝试安装react应用程序时不断遇到错误 这是Node.js 依赖树问题反应-材料表,node.js,json,reactjs,material-ui,Node.js,Json,Reactjs,Material Ui,我在尝试安装react应用程序时不断遇到错误 这是包.json: { "name": "@anomaly_detection_web_app/View", "version": "0.1.0", "private": true, "dependencies": { "@testing-library/jest-dom": "
包.json
:
{
"name": "@anomaly_detection_web_app/View",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.12.0",
"@testing-library/react": "^11.2.6",
"@testing-library/user-event": "^12.8.3",
"axios": "^0.21.1",
"node-sass": "^6.0.0",
"react": "^17.0.2",
"react-dom": "^17.0.2 ",
"react-icons": "^4.2.0",
"react-scripts": "4.0.3",
"web-vitals": "^1.1.2",
"@material-ui/core": "^4.11.4",
"material-table": "^1.69.3"
},
"scripts": {
"start": "cross-env PORT=8080 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"
]
}
}
键入npm install
时,出现以下错误:
我已经更改了react版本和material table版本,但没有更改任何内容。是否有人熟悉此问题,并可以建议我如何继续
谢谢我认为您在尝试安装的库所支持的React版本方面存在问题。尝试运行降级响应其
16.8.4
版本,并再次运行npm安装
。