
Security News
Meet Socket at Black Hat and DEF CON 2025 in Las Vegas
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
npm-cache-rm
Advanced tools
Removes entries from the npm cache
npm-cache-rm [--dry-run] <regex>
removes any entry that matches .
npm-cache-rm --dry-run electron
result
rm make-fetch-happen:request-cache:https://registry.npmjs.org/electron-publish/-/electron-publish-22.3.2.tgz
rm pacote:tag-manifest:https://registry.npmjs.org/electron/-/electron-10.0.0.tgz:sha512-0XX/LqYAHHCSbfLjUk9VRDPOeYjDPEzA9i7F50AqpEpFIWR2bp++0S0beRANUpPdkvtBDp+0R6vHV3iXPvuKyA==
rm make-fetch-happen:request-cache:https://registry.npmjs.org/electron/-/electron-10.0.0.tgz
rm make-fetch-happen:request-cache:https://registry.npmjs.org/electron-download/-/electron-download-4.1.1.tgz
rm pacote:tag-manifest:https://registry.npmjs.org/electron/-/electron-9.2.0.tgz:sha512-4ecZ3rcGg//Gk4fAK3Jo61T+uh36JhU6HHR/PTujQqQiBw1g4tNPd4R2hGGth2d+7FkRIs5GdRNef7h64fQEMw==
rm make-fetch-happen:request-cache:https://registry.npmjs.org/electron-context-menu/-/electron-context-menu-2.3.0.tgz
npm-cache-rm "electron.*?10\.0\.\0"
I'm not a node expert but it worked for me. I wanted to be able to test some issues I'm running into with packages without clearing the entire cache so I threw this together. I also wanted to keep the dependencies low so I didn't add a bunch of libraries for globing or argument parsing etc...
FAQs
remove entries from npm cache
The npm package npm-cache-rm receives a total of 2,090 weekly downloads. As such, npm-cache-rm popularity was classified as popular.
We found that npm-cache-rm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Meet Socket at Black Hat & DEF CON 2025 for 1:1s, insider security talks at Allegiant Stadium, and a private dinner with top minds in software supply chain security.
Security News
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.