check-installed-dependencies
Check if the currently installed packages match package.json
(Based on the check-dependencies.js
in fbjs)
Install
$ npm install --global check-installed-dependencies
Usage
$ check-installed-dependenciespackage-a is not installedpackage-b is outdated
var checkInstalledDependencies = ; ;
Note: This module currently doesn't support "file:" or "github:" versions.
Usage in npm scripts
You can use check-installed-dependencies
inside npm scripts.
$ npm install --save-dev check-installed-dependencies
Then in either prepublish
or another npm script you can use
check-installed-dependencies
.
"scripts":
Note: Using
check-installed-dependencies
inprepublish
will stop the package from being published.