A command-line utility that caches dependencies installed via npm, bower, jspm, and composer to reduce build times. It works by hashing the configuration file (package.json, bower.json, etc.) and storing the resulting tarball in a local cache directory (~/.package_cache by default). On subsequent runs, it extracts the cached tarball instead of re-installing. The latest version is 0.8.0 (last updated in 2017), with no active development. It is a simple, pragmatic solution for CI environments that run installs repeatedly, but lacks tests and modern best practices.
npm install npm-cacheNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows global installation and basic usage of npm-cache CLI to install and cache dependencies.
Use --cacheDirectory /path/to/cache to specify a custom location.
Check that network and permissions are available on first run.
Use a more modern tool like npm ci with caching or a dedicated CI cache step.
Consider alternatives like npm ci with --prefer-offline or CI-native caching.
Run with sudo or set --cacheDirectory to a user-writable location.
Use --forceRefresh to force a fresh install without cache, or ensure package.json is stable.
Check network connectivity and npm configuration, then retry.
No dependency data recorded yet.