A simple script that hashes the package.json file. Stores a archive in cache folder. On next install checks if there is a file with the same hash. If so it extracts that else it will do "npm install" and then create a cached hash archive.
This script idea is heavily based on npm-cache by swarajban. But without bower and composer compatibility . I suggest you check his out.
NOTE: this scripts requires 7zip command-line tool to work
Install with brew
brew install p7zipInstall with Chocolatey
choco install 7zip.commandlinenpm install -g npm-package-cachenpm-package-cache installYou can also add -f to make do an npm install --force if you need to
npm-package-cache install -fTo remove all cached files do
npm-package-cache cleanThis script is used for personal projects. Maintenance hasn't been thought out.