Skip to content

Creates a tar of node_modules and stores it in a temp directory for quick installs.

License

Notifications You must be signed in to change notification settings

nmalaguti/node-modules-snapshot

Repository files navigation

node_modules Snapshot

Tar up the node_modules directory and store it in a temp directory so it can be restored later without running npm install.

This is useful on build nodes like Jenkins to speed up builds.

Usage

$ node-modules-snapshot
No snapshot found at "/var/folders/3v/zdkckktj2194hxp_8mwytzcw0000gn/T/node-modules-snapshot/node-modules-snapshot/0cd711ab164722d7409c910c0054bb6d6fa63f3392615ef62c8964474ad202ba.tgz"
Running "npm install" in "/Users/nmalaguti/git/example/"...

Packaging up "/Users/nmalaguti/git/example/node_modules/"...

Options

-n, --dry-run: don't actually do anything, just log what would be done
--npm: the path to the npm cli to use to run npm install

About

Creates a tar of node_modules and stores it in a temp directory for quick installs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published