2

I upgraded my Mac OS to Sierra. After upgrading, when I tried to do npm install I get the following error:

ECMDERR Failed to execute "git ls-remote --tags --heads https://github.com/angular/bower-angular-animate.git", exit code of #128 fatal: unable to access 'https://github.com/angular/bower-angular-animate.git/': SSL: CA certificate set, but certificate verification is disabled

I have written a script wherein

npm install

also includes

bower install

I have tried few possible solutions to fix the error, but nothing seems to work.

Any help would be appreciated!

AmCurious
  • 97
  • 1
  • 2
  • 11
  • I would try reinstalling your modules and / or node – dgo Jan 31 '17 at 04:52
  • does it not have anything to do with github ? – AmCurious Jan 31 '17 at 04:56
  • Perhaps not. Might be how the module pulls dependencies. I didn't put this is an answer because I'm not saying it *will* work, but given the info you gave, that's where I'd start – dgo Jan 31 '17 at 05:05
  • i tried removing node modules and node and re-installing node v7.0.0 But it still gives the same error on npm install! :( – AmCurious Jan 31 '17 at 05:20

1 Answers1

6

As mentioned here, it means Git is using a cURL based on Apple's Secure Transport, and the target of the URL request (GitHub) doesn't support SSLv3 (which was probably disabled due to the POODLE exploit).
This is true for GitHub since October 2014

You need to install curl and Git with openssl

brew install --with-openssl curl
brew install git --with-brewed-curl
Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Woow! you save my day. I´ve been trying to fix this since days. So obscure problem! Thanks a lot! – Juan Jul 04 '17 at 14:54
  • 1
    @VonC. I can't thank you enough for this. I literally was pulling my hair. My Git-FTP won't work, no matter what changes I made, except for this where I had to uninstall curl and git both and reinstall with above commands and finally make it to work. THANK YOU SO MUCH! – Rahi Aug 04 '21 at 16:53
  • @Rahi Great! I am glad this answer is still helpful. – VonC Aug 04 '21 at 18:01