Error when running Npm run init

I am running Mac OS, I am getting an error when the init script is trying to apply patches. My npm version is 6.13.4, can anyone point me in the right direction?

Done running gclient sync.
Applying patches…

Getting patch data…events.js:288
throw er; // Unhandled ‘error’ event
^

Error: spawn git EAGAIN
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted ‘error’ event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: ‘EAGAIN’,
code: ‘EAGAIN’,
syscall: ‘spawn git’,
path: ‘git’,
spawnargs: [
‘apply’,
‘/Users/danishjalil/brave-browser/src/brave/patches/net-url_request-url_request_http_job.cc.patch’,
‘–numstat’,
‘-z’,
‘–ignore-space-change’,
‘–ignore-whitespace’
]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! brave@1.8.33 init: node ./scripts/sync.js --init
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the brave@1.8.33 init script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Do you mind using the appropriate markup for code so the output is easier to read?

Also, could you give me more information as to what repo you have cloned and are trying to run as well as what instructions you are following?

This will give myself and others enough information to help you with your issue :slight_smile: