npm start 报错。。。
C:\Users\18660\Desktop\my-app>npm start npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead. > my-app@0.1.0 start > react-scripts start 'react-scripts' 不是内部或外部命令,也不是可运行的程序 或批处理文件。 C:\Users\18660\Desktop\my-app>
{
"name": "my-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^5.14.1",
"@testing-library/react": "^11.2.7",
"@testing-library/user-event": "^12.8.3",
"antd":"^3.10.9",
"axios": "^0.27.2",
"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"
]
}
}注:package.json中的
"antd":"^3.10.9",是我手动填上的,因为之前删掉node_modules后npm install并安装该版本antd该处不显示,怀疑不成功。。于是重新删掉node_modules,手动填写该处,然后npm install。
8
收起
正在回答 回答被采纳积分+1
1回答
恭喜解决一个难题,获得1积分~
来为老师/同学的回答评分吧
0 星