npm-cache: fix incorrect commands and sync translations (#20132)

Signed-off-by: Emmanuel Ferdman <emmanuelferdman@gmail.com>
This commit is contained in:
Emmanuel Ferdman
2025-12-22 06:05:34 +02:00
committed by GitHub
parent 4f239359b5
commit 75b32ec91c
2 changed files with 16 additions and 24 deletions
+8 -12
View File
@@ -7,30 +7,26 @@
`npm cache add {{패키지_이름}}`
- 특정 패키지를 캐시에서 제거:
`npm cache remove {{패키지_이름}}`
- 키를 사용하여 특정 캐시 항목 삭제:
`npm cache clean {{키}}`
- 전체 npm 캐시 삭제:
`npm cache clean --force`
`npm cache clean {{[-f|--force]}}`
- npm 캐시의 내용 나열:
- 캐시된 패키지 나열:
`npm cache ls`
- 특정 이름과 버전과 일치하는 캐시된 패키지 나열:
`npm cache ls {{이름}}@{{버전}}`
- npm 캐시의 무결성 확인:
`npm cache verify`
- npm 캐시 위치 및 구성 정보 표시:
- npx 캐시의 모든 항목 나열:
`npm cache dir`
- 캐시 경로 변경:
`npm config set cache {{경로/대상/폴더}}`
`npm cache npx ls`
+8 -12
View File
@@ -7,30 +7,26 @@
`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`