2

Attempting to migrate to yarn 2.0 and run into a problem with private npm packages resulting in

YN0001: │ GotError: unable to get local issuer certificate

Got around this in yarn 1.x with the strict-ssl: false config setting. Is there a way of doing something similar in the new .yarnrc.yml? Couldn't find anything related in the docs.

My .yarnrc.yml:

yarnPath: .yarn/releases/yarn-sources.js
npmScopes:
  companyName:
    npmRegistryServer: "https://www.myget.org/F/companyName/npm"
rooooney
  • 21
  • 1
  • 2
  • 1
    Have you solved the it for yarn 2? I have found this maybe. https://github.com/yarnpkg/berry/issues/798 They suggests doing `NODE_TLS_REJECT_UNAUTHORIZED=0 yarn ...` – elpddev May 05 '20 at 07:08
  • 1
    enableStrictSsl: false to disable cert errors. – RRR May 15 '21 at 02:12

0 Answers0