Resolved: fatal: Unable to find remote helper for ‘git+http’ when using npm install

I was installing an open source project when I came into several issues. In order to install the dependencies I ran npm install on the shared library and came across the error message:

fatal: Unable to find remote helper for ‘git+http’

This of course complicated my entire existence. Tried to find a way to specify other protocol for git to get the source like https or plain old git but no luck. After hours and hours and considering the shared library is open source and I don’t control the code, I was looking for a way to git to smart its way around this… and thankfully I found it. 

Solution:

This magic command made all my issues go away:

git config --global url."https://".insteadOf git+http://

 
Do note that the command is changing git+http:// to https://. Use it wisely. Also, looking online most users have an error with git+https:// (mine was plain http) (fatal: Unable to find remote helper for ‘git+https’) so in that case you need to run a slightly different command like this:
 

git config --global url."https://".insteadOf git+https://

 
Hope this helps!

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.