'make' 命令在 WebStorm Makfile 语言插件中不起作用

'make' commands don't work in WebStorm Makfile Language Plugin

我遇到了一个我不知道如何解决的问题。 我在 Windows 上使用 WebStorm。我已经安装了 Makefile 语言插件来自动启动命令

install:
    npm ci
brain-games:
    node bin/brain-games.js
publish:
    npm publish --dry-run
lint:
    npx eslint

但我做不到,它 returns 错误

C:\ProgramData\chocolatey\bin\make.exe -f *way-to-the-project*/Makefile publish

process_begin: CreateProcess(NULL, npm publish --dry-run, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [*way-to-the-project*/Makefile:6: publish] Error 2

我已经尝试使用 Powershell 和 Microsoft Store 中的 Ubuntu 运行 'make' 命令并且它运行良好,我只是不明白插件有什么问题并且如何正确使用它。

请给我任何建议:)

如果您在 Windows 上使用 WebStorm 并尝试 运行 Makefile 时遇到此类问题,请确保在 IDE 中您没有选中选项 Add 'node_modules/.bin' from the project root to %PATH% 文件 -> 设置 -> 工具 -> 终端.

也许它会为您节省时间:)