yarn-check icon indicating copy to clipboard operation
yarn-check copied to clipboard

cafile or who .npmrc ignored

Open andypillip opened this issue 5 years ago • 3 comments

Hei there.

We are using our own registry, which requires our own CA and intermediate certificates. That's why we configure our own registry and cafile in .npmrc.

I can run npm info <mypackage> and yarn info <mypackage> without issues, but if I run yarn-check, every package is giving the following error:

Registry error unable to verify the first certificate

I verified with --verbose if npm is actually using our registry, and it's alright.

yarn-check --debug doesn't give me any hint on the used registry. I'm concluding the tool is either ignoring .npmrc altogether, or the ̀ cafile`.

andypillip avatar Apr 25 '19 13:04 andypillip

Have you checked if it works in the npm-check ?

yhnavein avatar Apr 26 '19 04:04 yhnavein

Why would an alternative to npm use .npmrc? Try making a .yarnrc.

CTimmerman avatar Nov 30 '20 13:11 CTimmerman

Well as far as I remember, in a minimal config mindset, you can use .npmrc with yarn. If that's the case, the config file should be respected in it's entirety, otherwise that feature is broken.

I'm sorry to not being able to reproduce or help resolving the issue, I don't work on that project any more.

andypillip avatar Dec 06 '20 15:12 andypillip