mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-22 04:51:13 +00:00
Update cheatsheets
This commit is contained in:
@@ -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`
|
||||
|
||||
Reference in New Issue
Block a user