ensure-npm
v0.0.3
Published
Ensures that your application is using a specific version on npm
Downloads
1
Readme
ensure-npm
Use this to make sure that your users are using the right version of npm.
cli usage
$ ensure-npm '5.0.0'
$ ensure-npm '>= 4.3.0'
use with npm install
Install it to your project as a devDependency
$ npm install ensure-npm --save-dev
Then edit your package.json
# package.json
"scripts": {
"preinstall": "ensure-npm '>=5.0.4'"
}