npm cache
Manage the npm package cache. More information: https://docs.npmjs.com/cli/npm-cache/.
- Add a specific package to the cache:
npm cache add
- Clear a specific cached item by key:
npm cache clean
- Clear the entire npm cache:
npm cache clean
- List cached packages:
npm cache ls
- List cached packages matching a specific name and version:
npm cache ls @
- Verify the integrity of the npm cache:
npm cache verify
- List all entries in the npx cache:
npm cache npx ls
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
