Installing plugins (Windows) - git not found


#1

Hi,

I’ve downloaded the current Atom version for windows (the installer one). Additionally I’ve installed msysgit (https://github.com/msysgit/msysgit/releases). The git.exe is available from anywhere now (the installation added the necessary paths to the environment variables).

I’ve started Atom and tried to install “Jumpy” but it fails. Part of the error message is:

npm ERR! not found: git
npm ERR!
npm ERR! Failed using git.
npm ERR! This is most likely not a problem with npm itself.
npm ERR! Please check if you have git installed and in your PATH.

I have git installed and it’s in the path… Isn’t msysgit “supported”? Why the hell isn’t Atom able to use the git.exe command?


#2

If git is required to install plugins, why isn’t it installed with the Windows installer? There is nothing that says that git is required and you won’t even know why you are unable to install plugins unless you understand what that error even means.


#3

Try this:

  • Open Atom
  • Type Ctrl+Alt+I. The inspector comes up.
  • Select the tab “Console”.
  • Enter the following line behind the Console prompt:
    process.env.Path
    

If you have a C:\foo\bar\baz\git.exe then C:\foo\bar\baz should be mentioned in that list.


#4

If process.env.Path does not contain the git directory, how should i prceed? should i just use the console and add it?
process.env.Path = process.env.Path + ";My\\Path\\To\\Git\\bin"
or should i add it in some file?