Used to invalidate the on-disk cache when the format changes.
Caches and returns the package metadata for the given ident.
Note: This function only caches and returns specific fields from the metadata. If you need other fields, use the uncached get or consider whether it would make more sense to extract the fields from the on-disk packages using the linkers or from the fetch results using the fetchers.
Note: This function only caches and returns specific fields from the metadata. If you need other fields, use the uncached get or consider whether it would make more sense to extract the fields from the on-disk packages using the linkers or from the fetch results using the fetchers.
Consumes all 401 Unauthorized errors and reports them as AUTHENTICATION_INVALID
.
It doesn't handle 403 Forbidden, as the npm registry uses it when the user attempts a prohibited action, such as publishing a package with a similar name to an existing package.
It doesn't handle 403 Forbidden, as the npm registry uses it when the user attempts a prohibited action, such as publishing a package with a similar name to an existing package.
Generated using TypeDoc
@yarnpkg/plugin-npm
This plugin adds support for downloading packages from the npm registry.
Install
This plugin is included by default in Yarn.