错误:运行 npm start 时缺少脚本“start”

问题描述 投票:0回答:1

运行 npm start 时出现以下错误:

npm ERR! Missing script: "start"
npm ERR! 
npm ERR! Did you mean one of these?
npm ERR!     npm star # Mark your favorite packages
npm ERR!     npm stars # View packages marked as favorites
npm ERR! 
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR! A complete log of this run can be found in: /Users/name/.npm/_logs/2024-03-28T20_55_38_798Z-debug-0.log

我尝试了以下解决方案,但都不起作用:

npm 使用 create-react-app 启动错误
运行 npm start 时启动脚本丢失错误

reactjs
1个回答
0
投票

https://sebhastian.com/npm-err-missing-script-start/ 您可以通过此链接找到答案。

© www.soinside.com 2019 - 2024. All rights reserved.