如何解决make×ERR not found: make-$(SOURCE_FILES) while 运行ning npm 运行 build command

How to solve make × ERR not found: make-$(SOURCE_FILES) while running npm run build command

我正在尝试 运行 命令 npm run build。我遇到错误

`make i info Invoking build target
make i info Invoking dist/build target
(node:15892) UnhandledPromiseRejectionWarning: undefined
(Use `node --trace-warnings ...` to show where the warning was created)
(node:15892) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:15892) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
make × ERR  not found: make-$(SOURCE_FILES)`

请任何人帮助我解决问题。

我终于解决了在 window 中使用 chocolaty 安装 make 命令的问题。我收到错误是因为 make 没有安装在我的 windows 上(我不知道 make 是 window 的命令而不是 NodeJs')。

这 post 帮助我解决了我的问题。