Incremental npm install with downgrade support.
npm install npm-fast-syncThis script is a much faster alternative to npm install when you want to keep your node_modules folder up to date.
It will upgrade/downgrade all modules in dependencies and devDependencies that do not satisfy the semver spec. This also works for git dependencies that are tagged with the version number like so:
```
git+ssh://git@github.com/private-company/private-module.git#3.2.1
`shell`
npm install -g npm-fast-sync
Just run npm-fast-sync and this script will take care of the rest!
`shell`
cd ~/my/node/project
npm-fast-sync
- The script will first run npm prune to clean out unused dependencies.dependencies
- For each dependency in and devDependencies, it will evaluate if the installed version satisfies the spec.npm install
- All the unsatisfied dependencies are collected together with their specs into a single command. For example if the no-op and lodash modules need updating: npm install no-op@1.0.0 lodash@^3.0.0`.