From 75b32ec91caef35dd2c44824585d72f7ebbfcce2 Mon Sep 17 00:00:00 2001 From: Emmanuel Ferdman Date: Mon, 22 Dec 2025 06:05:34 +0200 Subject: [PATCH] npm-cache: fix incorrect commands and sync translations (#20132) Signed-off-by: Emmanuel Ferdman --- pages.ko/common/npm-cache.md | 20 ++++++++------------ pages/common/npm-cache.md | 20 ++++++++------------ 2 files changed, 16 insertions(+), 24 deletions(-) diff --git a/pages.ko/common/npm-cache.md b/pages.ko/common/npm-cache.md index 6e21101e73..ad56bced17 100644 --- a/pages.ko/common/npm-cache.md +++ b/pages.ko/common/npm-cache.md @@ -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` diff --git a/pages/common/npm-cache.md b/pages/common/npm-cache.md index 19f5fbc63a..348d67a26a 100644 --- a/pages/common/npm-cache.md +++ b/pages/common/npm-cache.md @@ -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`