Gurnt:git bash 上的 shell 任务确实识别路径中的 space

Gurnt: shell task on git bash does recognize the space in path

在我的 g运行t 文件中,我有一个任务如下:

 shell: {
        test: {
            command: [
                process.argv[0] + ' node_modules/abc/bin/abc-node',

process.argv[0] is c:\Program Files\nodejs\node.exe 当我 运行 命令提示符或 intellij 上的任务时它很好但是当我 运行 它在 Git Bash 中时我收到以下错误:

Warning: Command failed: 'c:\Program' is not recognized as an internal or                 
external command,
operable program or batch file.
Use --force to continue.

我该如何解决这个问题?

由于警告而中止。

试试这个

command: [
    'node node_modules/abc/bin/abc-node'