当运行React项目得到错误作为npm ERR?



我无法运行我的react项目。当我进入npx start时,我遇到了这个问题,有人可以帮助我吗?

npm犯错!无法确定要运行的可执行文件

npm犯错!在

中可以找到此运行的完整日志:npm犯错!C:UsersateyuAppDataLocal npm-cache_logs 2022 - 05 - 26 - t19_30_57_752z -调试- 0. -日志

Package.json

{
"name": "web",
"version": "0.1.0",
"private": true,
"dependencies": {
"@emotion/react": "^11.5.0",
"@emotion/styled": "^11.3.0",
"@mui/material": "^5.0.6",
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"axios": "^0.24.0",
"bootstrap": "^5.1.1",
"dayjs": "^1.10.7",
"jwt-decode": "^3.1.2",
"react": "^17.0.2",
"react-bootstrap": "^2.0.0-rc.1",
"react-dom": "^17.0.2",
"react-icons": "^4.3.1",
"react-reveal": "^1.2.2",
"react-router-dom": "^5.3.0",
"react-scripts": "4.0.3",
"react-star-rating-input": "^8.0.1",
"react-stars": "^2.2.5",
"react-table": "^7.7.0",
"simple-react-lightbox": "^3.6.9-0",
"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"
]
}
}

删除包锁。然后重新运行npm install . json文件和Node模块。然后运行npm start.

最新更新