Skip to content

Loading…

git+https SSL certificate problem #4283

Closed
dcherman opened this Issue · 2 comments

4 participants

@dcherman

Apologies if this is the wrong place for this - I tried sending this to npm-@googlegroups.com, but it doesn't seem like I have permissions to post there.


I'm in a windows environment trying to npm install some git+https
repositories from a privately hosted GitLab instance, but I keep getting
errors like the following:

npm ERR! Error: Command failed: fatal: unable to access '[ url removed ]':
SSL certificate problem: unable to get local issuer certificate

I've tried exporting every certificate that's in the chain and placing them
in C:\Program Files (x86)\Git\ssl\certs and appending them to C:\Program
Files (x86)\Git\bin\curl-ca-bundle.crt, but I'm still getting these errors.

Doing git clone on that URL outside of npm works perfectly fine. It seems
like npm uses the git that's globally available via my PATH - I've
confirmed that by logging out the version of git that npm is using and
compared that to the global one. Both aregit version 1.8.4.msysgit.0,
so I'm not sure why I only get certificate errors when cloning via npm.

At this point I'm out of ideas, so any help is appreciated - thanks!

@reharik

for what it's worth, I'm getting the same thing. However I only get it on my work machine. Home machine same command works fine

@domenic
npm member

Doing git clone on that URL outside of npm works perfectly fine. It seems like npm uses the git that's globally available via my PATH

Which version of npm are you using? Can you list your environment variables? npm only spawns git with some of the environment variables inherited, so I wonder if we missed some.

@domenic domenic closed this
@othiym23 othiym23 added the support label
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.