刚刚解决了问题:
在 package.json , 我变了 "start": react-scripts start" , 至 "start": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js start" 。这解决了这个问题。
package.json
"start": react-scripts start"
"start": "NODE_ENV=production node_modules/react-scripts/bin/react-scripts.js start"
试试跑步 npm install 在跑步之前 npm start ,如果这不起作用,请查看同一问题的这篇文章 - sh:react-scripts:运行npm start后找不到命令
npm install
npm start