Skip to content

Error: self-signed certificate in certificate chain #183

@hahanein

Description

@hahanein

I cannot install this package anymore because a certificate error will be produced:

$ pnpm i
Scope: all 9 workspace projects
Lockfile is up to date, resolution step is skipped
Packages: +1996
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1996, reused 1985, downloaded 1, added 1, done
node_modules/.pnpm/unrs-resolver@1.11.1/node_modules/unrs-resolver: Running postinstall script, failed in 153ms
.../node_modules/unrs-resolver postinstall$ napi-postinstall unrs-resolver 1.11.1 check
│ node:internal/process/promises:394
│     triggerUncaughtException(err, true /* fromPromise */);
│     ^
│ Error: self-signed certificate in certificate chain
│     at TLSSocket.onConnectSecure (node:_tls_wrap:1679:34)
│     at TLSSocket.emit (node:events:518:28)
│     at TLSSocket._finishInit (node:_tls_wrap:1078:8)
│     at ssl.onhandshakedone (node:_tls_wrap:864:12) {
│   code: 'SELF_SIGNED_CERT_IN_CHAIN'
│ }
│ Node.js v22.15.0
└─ Failed in 153ms at /tmp/mm10669/ui/node_modules/.pnpm/unrs-resolver@1.11.1/node_modules/unrs-resolver

This was not a problem with version 1.3.2 of unrs-resolver which did not depend on napi-postinstall at all. But it is a problem with version 1.11.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions