Atom update error: spawn git ENOENT


#1

Hello.

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)


#2

Are you trying to update packages or Atom itself?


#3

Thanks for your reply!

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


#4

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:


#5

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

process.env.PATH now shows:
"/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/usr/bin/git"

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


#6

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


#7

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


#9

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.


#10

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: