Atom update error: spawn git ENOENT



I recently installed Atom and noticed that I cannot update.

‘Check for updates’ returns ‘spawn git ENOENT’.

Similar errors (spawn xy ENOENT) seem to require the installation of xy, but I have git installed.

Any ideas?

(OS Debian 8)


Are you trying to update packages or Atom itself?


Thanks for your reply!

I’m trying to update packages via the update section in Atom’s settings.


Is git available in the PATH that is used when Atom is launched? You can find the PATH that Atom is using by opening the Developer Tools console and typing process.env.PATH:


Git wasn’t in the PATH, so I added /usr/bin/git. (I hope that’s what you meant)

process.env.PATH now shows:

Updates are still not working, same error: ‘spawn git ENOENT’.


What is the output of which git in the terminal? (Not in the dev tools)


The output of which git is /usr/bin/git (which I added to the path)…


You shouldn’t add the full path to the executable to the PATH, you should add the directory in which it is stored. In this case, that would be /usr/bin, which is already in the PATH. So I’m not sure why you’re getting the ENOENT error.


Ok, thanks for the help anyway!

Btw the Atom console shows this error message when I try to update:

/usr/share/atom/resources/app.asar/node_modules/settings-view/lib/package-manager.js:177 Uncaught (in promise) Error: Fetching outdated packages and themes failed.(…)

Whatever, I went for the complete un- + reinstall and updates are working now.

Just wanted to know what the problem was! :slight_smile: