编译时出现问题,并表示 React 中缺少脚本

问题描述 投票: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
reactjs react-native
1个回答
0
投票

检查 package.json 文件是否有如下所示的脚本?

{ “名称”:“示例”, “版本”:“1.0.0”, “描述”:“描述”, “脚本”:{ "test": "echo "错误:未指定测试" && exit 1", "start": "节点index.js", } }

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