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!

4
  • I would try reinstalling your modules and / or node Commented Jan 31, 2017 at 4:52
  • does it not have anything to do with github ? Commented Jan 31, 2017 at 4: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 Commented Jan 31, 2017 at 5: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! :( Commented Jan 31, 2017 at 5:20

1 Answer 1

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 
Sign up to request clarification or add additional context in comments.

3 Comments

Woow! you save my day. I´ve been trying to fix this since days. So obscure problem! Thanks a lot!
@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 Great! I am glad this answer is still helpful.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.