Search code examples
gitpowershellwindows-8composer-phpwindows-shell

Windows 8 Composer Install from private repository


Windows 8 Composer Install from private repository Message: "Failed to clone ... git was not found, git was not found, check that it is installed and in your path ENV".

I have tried using composer install from both the Windows terminal and Git Bash with the same message. Git is definitely installed with the correct path environments, and the same with Composer.

My private repositories have worked elsewhere on Windows 7 and on a Linux server so I believe this could be a Windows 8 problem.

Has anyone else had this same problem? If so, how would you go about fixing it?

It is just a general Windows problem and I can use git and even find the Git version, but when trying to composer install or update, it can't find git.

I would appreciate any answers.


Solution

  • For anyone wanting to know how I fixed this issue. I had tried installing a plugin for command prompt which adds colour to the command for better feedback (I think this was something for a Ruby program).

    The plugin went Rogue and wasn't installing properly, this some how interfered with Composer trying to find git and caused me a big headache.

    I found the problem when searching for something in the registry and it required me to go into HKEY_CURRENT_USER and found it somewhere in there. I remembered it being something I installed and completely forgot about so it just clicked.

    I deleted this from the registry and voila composer started running as it should have from the start. I ran the composer install with some packages which are private to me and they downloaded without a problem.