← 返回命令列表

Linux command

npm-cache 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Clear npm cache

npm cache clean --force

Verify cache integrity

npm cache verify

Show cache location

npm cache ls

说明

npm cache manages the npm package cache. The cache stores downloaded packages to speed up installations. Verify checks integrity and removes corrupt entries. Clean requires --force flag.

参数

clean
Delete cache folder contents.
verify
Verify cache integrity.
ls
List cache contents.
--force
Required for clean command.

FAQ

What is the npm-cache command used for?

npm cache manages the npm package cache. The cache stores downloaded packages to speed up installations. Verify checks integrity and removes corrupt entries. Clean requires --force flag.

How do I run a basic npm-cache example?

Run `npm cache clean --force` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does clean do in npm-cache?

Delete cache folder contents.