I am looking at the cache docs: https://docs.npmjs.com/cli/cache
if I ran this:
npm cache add [email protected]
how can I check later, if this is in the npm cache?
I don't see npm cache get [email protected]
in the docs...
I am looking at the cache docs: https://docs.npmjs.com/cli/cache
if I ran this:
npm cache add [email protected]
how can I check later, if this is in the npm cache?
I don't see npm cache get [email protected]
in the docs...
Copyright © 2021 Jogjafile Inc.
Looks like
npm
has not a direct way to achieve this, but this script does the trickcreate a file
cache.js
and paste code belowrun
then run
personal opinion:
yarn
is designed to cache npm packages, if you are going to do that, you could give it a chanceEDIT: I made a script that does all of the above, every feedback is welcome
https://www.npmjs.com/package/npm-check-cache