npm cache add package

Category: Node.js & npm/yarn

npm cache add package

Pre-populate the cache with a package without installing it into node_modules

Pre-downloads a package into the cache without installing it. Useful for seeding the cache before going offline.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.