PageSourceSearch

https://pnpm.io/assets/js/f8a30cc3.916e2fab.js

js pnpm.io collected 2026-09-24 07:25:01 UTC 2,847 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([["35553"],{95452(e,t,i){i.r(t),i.d(t,{metadata:()=>s,default:()=>p,frontMatter:()=>c,contentTitle:()=>a,toc:()=>o,assets:()=>l});var s=JSON.parse('{"id":"cli/cache-list-registries","title":"pnpm cache list-registries","description":"This command is experimental","source":"@site/versioned_docs/version-12.x/cli/cache-list-registries.md","sourceDirName":"cli","slug":"/cli/cache-list-registries","permalink":"/cli/cache-list-registries","draft":false,"unlisted":false,"editUrl":"https://github.com/pnpm/pnpm.io/edit/main/docs/cli/cache-list-registries.md","tags":[],"version":"12.x","lastUpdatedBy":null,"lastUpdatedAt":null,"frontMatter":{"id":"cache-list-registries","title":"pnpm cache list-registries"},"sidebar":"docs","previous":{"title":"pnpm cache list","permalink":"/cli/cache-list"},"next":{"title":"pnpm cache view","permalink":"/cli/cache-view"}}'),n=i(91987),r=i(67008);let c={id:"cache-list-registries",title:"pnpm cache list-registries"},a,l={},o=[];function d(e){let t={a:"a",admonition:"admonition",code:"code",p:"p",pre:"pre",...(0,r.R)(),...e.components};return(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(t.admonition,{type:"warning",children:(0,n.jsx)(t.p,{children:"This command is experimental"})}),"\n",(0,n.jsx)(t.p,{children:"Lists all registries that have their metadata cache locally, one URL per line:"}),"\n",(0,n.jsx)(t.pre,{children:(0,n.jsx)(t.code,{children:"https://registry.npmjs.org/\nhttps://npm.example.com:8443/team-a/\n"})}),"\n",(0,n.jsxs)(t.p,{children:["Since v12.4.0, the metadata cache is keyed by the registry's full URL, including its path and scheme, so two registries served from one host under different paths no longer share cached packuments and metadata fetched over HTTP is never reused for HTTPS. Up to v12.4.2 this command printed the cache directory name, such as ",(0,n.jsx)(t.code,{children:"https%3A+registry.npmjs.org"}),", and since v12.5.0 it prints the URL, matching ",(0,n.jsx)(t.a,{href:"/cli/cache-view",children:(0,n.jsx)(t.code,{children:"pnpm cache view"})}),". A script that parsed the old host-shaped directory names, here or in ",(0,n.jsx)(t.code,{children:"pnpm cache list"}),", needs updating, and the first install after upgrading refetches registry metadata. The package store is untouched."]})]})}function p(e={}){let{wrapper:t}={...(0,r.R)(),...e.components};return t?(0,n.jsx)(t,{...e,children:(0,n.jsx)(d,{...e})}):d(e)}},67008(e,t,i){i.d(t,{R:()=>c,x:()=>a});var s=i(71763);let n={},r=s.createContext(n);function c(e){let t=s.useContext(r);return s.useMemo(function(){return"function"==typeof e?e(t):{...t,...e}},[t,e])}function a(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(n):e.components||n:c(e.components),s.createElement(r.Provider,{value:t},e.children)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.