Update cheatsheets

This commit is contained in:
ivuorinen
2025-12-23 00:21:40 +00:00
parent 716a67f83d
commit 4e6886aa1f
57 changed files with 368 additions and 131 deletions

View File

@@ -12,30 +12,26 @@ source: https://github.com/tldr-pages/tldr.git
`npm cache add {{package_name}}`
- Remove a specific package from the cache:
`npm cache remove {{package_name}}`
- Clear a specific cached item by key:
`npm cache clean {{key}}`
- Clear the entire npm cache:
`npm cache clean --force`
`npm cache clean {{[-f|--force]}}`
- List the contents of the npm cache:
- List cached packages:
`npm cache ls`
- List cached packages matching a specific name and version:
`npm cache ls {{name}}@{{version}}`
- Verify the integrity of the npm cache:
`npm cache verify`
- Show the cache path:
- List all entries in the npx cache:
`npm {{[c|config]}} get cache`
- Change the cache path:
`npm {{[c|config]}} set cache {{path/to/directory}}`
`npm cache npx ls`