commands.sh

npm cache

all

Manage the npm package cache.

More info →

Options (1)

-f, --forceboolean

Clear the entire npm cache

Example: npm cache clean {{[-f|--force]}}

Examples (7)

Add a specific package to the cache

npm cache add package_name

Clear a specific cached item by key

npm cache clean key

Clear the entire npm cache

npm cache clean [-f|--force]

List cached packages

List cached packages matching a specific name and version

npm cache ls name@version

Verify the integrity of the npm cache

npm cache verify

List all entries in the npx cache

made by @shridhargupta | data from tldr-pages