LinuxCommandLibrary

npm-cache

manages the npm package cache

TLDR

Clear npm cache

$ npm cache clean --force
copy
Verify cache integrity
$ npm cache verify
copy
Show cache location
$ npm cache ls
copy

SYNOPSIS

npm cache command [options]

DESCRIPTION

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.

PARAMETERS

clean

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

SEE ALSO

npm(1), npm-install(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community