Git node error can't clone or pull

Describe the issue/error/question

When I execute git node in my workflow, it can’t pull or clone operation.

What is the error message (if any)?

ERROR: Error: spawn git ENOENT at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:478:16) at processTicksAndRejections (node:internal/process/task_queues:83:21)

Please share the workflow

Share the output returned by the last node

Error: Error: spawn git ENOENT
    at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
    at onErrorNT (node:internal/child_process:478:16)
    at processTicksAndRejections (node:internal/process/task_queues:83:21)
    at Object.action (/usr/local/lib/node_modules/n8n/node_modules/simple-git/dist/cjs/index.js:1228:25)
    at PluginStore.exec (/usr/local/lib/node_modules/n8n/node_modules/simple-git/dist/cjs/index.js:1263:29)
    at /usr/local/lib/node_modules/n8n/node_modules/simple-git/dist/cjs/index.js:1627:43
    at new Promise (<anonymous>)
    at GitExecutorChain.handleTaskData (/usr/local/lib/node_modules/n8n/node_modules/simple-git/dist/cjs/index.js:1625:16)
    at GitExecutorChain.<anonymous> (/usr/local/lib/node_modules/n8n/node_modules/simple-git/dist/cjs/index.js:1609:44)
    at Generator.next (<anonymous>)
    at fulfilled (/usr/local/lib/node_modules/n8n/node_modules/simple-git/dist/cjs/index.js:55:24)

Information on your n8n setup

  • n8n version: 0.193.5
  • Database you’re using (default: SQLite): postgresql 14.2
  • Running n8n with the execution process [own(default), main]: default
  • Running n8n via [Docker, npm, n8n.cloud, desktop app]: docker

Hi @Dark_EssAW, welcome to the community!

I am sorry to hear you’re having trouble. I just gave this a quick go both on version 0.193.5 as well as 0.194.0 and was able to reproduce the problem you have reported.

Running this on the current master branch does, however, seem to work fine:

So hopefully this issue is resolved with the next n8n release (this should come out in the next couple of days).

Okay, I will wait for the next release. Thank you very much for your support.

Hi MutedJam, Does current release version 0.195.5 have been fixed ? Becuase i try this version, it still has the same error.

Hey @Dark_EssAW,

I have just given this a quick go and it looks like our image doesn’t have the git command included anymore, We will get this one fixed for the next release. I suspect it worked for @MutedJam because he has git installed on his desktop :slightly_smiling_face:

1 Like