Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[npm] fatal: Unable to find remote helper for 'git+https' #335

Open
vercotux opened this issue Apr 16, 2020 · 3 comments
Open

[npm] fatal: Unable to find remote helper for 'git+https' #335

vercotux opened this issue Apr 16, 2020 · 3 comments

Comments

@vercotux
Copy link

It seems there is an issue with some NPM packages which specify their dependencies in a format which uses "git+https" as the URL protocol.

This is the error I get during composer update -vvv:

[RuntimeException]                                                                                                                                                      
Failed to execute git clone --mirror 'git+https://github.com/vibornoff/asmcrypto.js' '/home/myname/.composer/cache/vcs/git-https---github.com-vibornoff-asmcrypto.js/'                                                                                                                                                                          
Cloning into bare repository '/home/myname/.composer/cache/vcs/git-https---github.com-vibornoff-asmcrypto.js'...                                                        
fatal: Unable to find remote helper for 'git+https' 

Here is one example of such an NPM package: meganz/jodid25519

The format used is a valid format. Possible URL protocols in npm package.json dependencies: git, git+ssh, git+http, git+https, git+file

@francoispluchino
Copy link
Member

The error comes from Git which does not support git+https. However, NPM and Yarn know how to use it, so we should convert this url to https:// only.

@francoispluchino
Copy link
Member

Try the install/update with the --prefer-dist option, in this case, Git is not used.

@vercotux
Copy link
Author

It appears the logic for this already exists. But why is it not working?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants