What is the purpose of the `npm cache` command?

Question

Grade: Education Subject: Support
What is the purpose of the `npm cache` command?
Asked by:
47 Viewed 47 Answers

Answer (47)

Best Answer
(193)
The `npm cache` command stores downloaded packages and their versions. It's useful for quickly checking if a package is already installed, or for re-running `npm install` without reinstalling.