A CLI utility that clears the NPX cache (_npx directory) to force fresh downloads of NPX-powered tools like create-react-app. Current version 1.1.2, released once. No known release cadence. Differentiator: simpler than manually removing the _npx folder; handles both creation and deletion of the cache directory. Works on all platforms with Node.js and npm. Small, zero-dependency tool that fixes a common NPX caching issue where packages are never updated in cache.
npm install clear-npx-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates programmatic usage of clearNpxCache function, which returns a promise with the result object.
Ensure no NPX commands are running concurrently when clearing cache.
Check existence of cache directory before calling function if you want to avoid creation.
Ensure npm is installed and configured correctly.
Run the command with sudo (e.g., sudo npx clear-npx-cache) or adjust permissions.
Use import { clearNpxCache } from 'clear-npx-cache';Switch to dynamic import: const { clearNpxCache } = await import('clear-npx-cache');No dependency data recorded yet.