【发布时间】:2022-06-16 17:06:22
【问题描述】:
我正在尝试为 react 项目创建构建的文件夹,但是当我运行命令“npm run build”时出现此错误
(base) tazar@Tazs-Air nft-minter-tutorial-main % npm run build
npm ERR! Missing script: "build"
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:
npm ERR! /Users/tazar/.npm/_logs/2022-02-25T01_15_14_544Z-debug.log
【问题讨论】:
-
在你的 package.json 文件中,是否定义了构建命令?
-
可能不会。
To see a list of scripts, run: npm run. -
"build": "react-scripts build" 出现在我的“脚本”中,如果这是你的要求,但它仍然给我同样的错误行:(,天哪,我讨厌节点
标签: node.js reactjs npm terminal build