Mx.*_*Mx. 5 reactjs visual-studio-code npm-start
React 安装正确,其他一切正常,除了当我尝试在终端中运行“npm start”时,它给了我以下错误。

这是我的 package.json 代码:
{
"name": "r3-ui",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.11.6",
"@testing-library/react": "^11.2.2",
"@testing-library/user-event": "^12.2.2",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-scripts": "4.0.1",
"web-vitals": "^0.2.4"
},
"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"
]
}
}
Run Code Online (Sandbox Code Playgroud)
&在 Windows 上命名目录时请勿使用。重命名UI & Web Design为UI_Web_Design. 后面的任何内容都&被视为命令。
更改目录名称后运行npm start。
| 归档时间: |
|
| 查看次数: |
86 次 |
| 最近记录: |