mirror of
https://github.com/tldr-pages/tldr.git
synced 2024-10-28 11:19:46 +01:00
npm-cache: add page (#14391)
* Create npm-cache.md * Update pages/common/npm-cache.md Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> * Update pages/common/npm-cache.md Co-authored-by: Managor <42655600+Managor@users.noreply.github.com> --------- Co-authored-by: Sebastiaan Speck <12570668+sebastiaanspeck@users.noreply.github.com> Co-authored-by: Managor <42655600+Managor@users.noreply.github.com>
This commit is contained in:
parent
0a2655bc53
commit
a8480a2633
1 changed files with 36 additions and 0 deletions
36
pages/common/npm-cache.md
Normal file
36
pages/common/npm-cache.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# npm cache
|
||||
|
||||
> Manage the npm package cache.
|
||||
> More information: <https://docs.npmjs.com/cli/commands/npm-cache>.
|
||||
|
||||
- Add a specific package to the cache:
|
||||
|
||||
`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`
|
||||
|
||||
- List the contents of the npm cache:
|
||||
|
||||
`npm cache ls`
|
||||
|
||||
- Verify the integrity of the npm cache:
|
||||
|
||||
`npm cache verify`
|
||||
|
||||
- Show information about the npm cache location and configuration:
|
||||
|
||||
`npm cache dir`
|
||||
|
||||
- Change the cache path:
|
||||
|
||||
`npm config set cache {{path/to/directory}}`
|
Loading…
Reference in a new issue