Skip to content
This repository has been archived by the owner on May 1, 2024. It is now read-only.

[Question] Response timeouts for packages #587

Closed Answered by bozdoz
bozdoz asked this question in CLI
Discussion options

You must be logged in to vote

Going to answer my own question. I eventually figured this out by adding DEBUG=*, and a few other flags, and then looking into the files in the stack trace when the request times out.

What is happening?

It's fetching a "packument"

Packument objects are general metadata about a project corresponding to registry metadata, and include version and dist-tag information about a package's available versions, rather than a specific version.

Why is this happening?

Yes, there is a resolved tarfile; however, the "packument" will be fetched if the resolved value's registry url is not identical:

https://github.com/npm/pacote/blob/v9.5.12/lib/fetchers/registry/tarball.js#L18-L22

if (
  opts.resolved &&

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@bozdoz
Comment options

@bozdoz
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by bozdoz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
CLI
Labels
None yet
2 participants