我的package.json
文件如下所示-
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
该项目是使用create-react-app创建的,但当我试图执行启动脚本时,会提到错误"npm ERR! missing script: start"
正如注释所说,您位于错误的目录中。。。如果在正确的目录中,请尝试仔细检查您的目录,确保文件已保存(如果已保存(,然后尝试关闭并打开您的终端或vscode。