Skip to content

Unable to install on CI - 401 http error [Yarn PnP] #184

@mrginglymus

Description

@mrginglymus
/root/.yarn/berry/cache/napi-postinstall-npm-0.2.4-faafe4bb80-10c0.zip/node_modules/napi-postinstall/lib/index.js:23
                  return reject(new Error(`Server responded with ${res.statusCode}`));
                                ^
  
  Error: Server responded with 401
      at ClientRequest.<anonymous> (/root/.yarn/berry/cache/napi-postinstall-npm-0.2.4-faafe4bb80-10c0.zip/node_modules/napi-postinstall/lib/index.js:23:31)
      at Object.onceWrapper (node:events:622:26)
      at ClientRequest.emit (node:events:507:28)
      at HTTPParser.parserOnIncomingClient (node:_http_client:716:27)
      at HTTPParser.parserOnHeadersComplete (node:_http_common:117:17)
      at TLSSocket.socketOnData (node:_http_client:558:22)
      at TLSSocket.emit (node:events:507:28)
      at addChunk (node:internal/streams/readable:559:12)
      at readableAddChunkPushByteMode (node:internal/streams/readable:510:3)
      at Readable.push (node:internal/streams/readable:390:5)
  
  Node.js v24.3.0

I'm presuming this is a long way down from the actual error (as this is just a fallback, as I understand it).

Latest napi-postinstall appears to pass fine? nope, it does not either

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