cache dependency manager installs to local machine
npm install npm-cachenpm-cache
=========
npm-cache is a command line utility that caches dependencies installed via npm, bower, jspm and composer.
It is useful for build processes that run [npm|bower|composer|jspm] install every time as part of their
build process. Since dependencies don't change often, this often means slower build times. npm-cache
helps alleviate this problem by caching previously installed dependencies on the build machine. npm-cache can be a drop-in replacement for any build script that runs [npm|bower|composer|jspm] install.
npm-cache install [npm|bower|jspm|composer], it first looks for package.json, bower.json,composer.json in the current working directory depending on which dependency manager is requested.npm-cache uses the system's installed dependency manager to install the dependencies. Once thenpm-cache tars the newly downloaded dependencies and stores them in the npm-cache runs and sees the same config file, it will find the tarball
npm install -g npm-cache
`Usage
`
npm-cache install
`To specify arguments to each dependency manager, add the arguments after listing the dependency manager.
For example, to install bower components with the
--allow-root option, and composer with the --dry-run option:
`
npm-cache install bower --allow-root composer --dry-run
`Examples
`bash
npm-cache install # try to install npm, bower, and composer components
npm-cache install bower # install only bower components
npm-cache install bower npm # install bower and npm components
npm-cache install bower --allow-root composer --dry-run # install bower with allow-root, and composer with --dry-run
npm-cache install --cacheDirectory /home/cache/ bower # install components using /home/cache as cache directory
npm-cache install --forceRefresh bower # force installing dependencies from package manager without cache
npm-cache install --noArchive npm # installs dependencies and caches them without compressing
npm-cache clean # cleans out all cached files in cache directory
``Important: Please submit all pull requests to the branch feature/pull-requests
