pacote
pacote copied to clipboard
npm fetcher
# What / Why > I am coming from here: https://github.com/joelspadin-garmin/vscode-private-extension-manager/issues/27 where this package uses pacote to get packages from registries. We use nexus3 as an npm registry with a...
# What / Why There's a failure mode I've seen both with npm install, and an internal tool that uses pacote directly. If the requests terminates prematurely, pacote tries to...
## What / Why (Sorry for any bad assumptions i'm making here, i know very little about NPM or `pacote`) When `pacote` detects that it's running as `root`, but the...
# What / Why https://github.com/npm/pacote/blob/main/lib/file.js#L27-L29 In these lines of code, we extract the full tarball into a temp directory, in order to read only the package.json from it. This seems...
# What / Why Currently the `cleanupCached()` method in `lib/fetcher.js` seen here: https://github.com/npm/pacote/blob/latest/lib/fetcher.js#L323 Deletes _content_ directly from `this.cache` which is the cache directory configured by npm and is shared across...
I'm interested in telling whether the result of `pacote.manifest()` came from the registry or from the cacache. Is that what the existing packument `_cached` field indicates? https://github.com/npm/pacote/blob/298df450c03af17c069b8e40834d0154e801b61e/lib/registry.js#L77 If so, does...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior The `_cached` field is set in the presence of a `x-local-cache`...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior `npm install` a package with dependencies from git. If the package...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior Proxy settings are ignored. Requests assume that a proxy is not...
### Is there an existing issue for this? - [X] I have searched the existing issues ### Current Behavior When extracting to a folder where the same (but older version)...