assert-npm-version
assert-npm-version copied to clipboard
Assert that npm is at least a certain version
assert-npm-version
Assert that npm
is at least a certain version.
Installation
$ npm install assert-npm-version
Usage
cli
$ assert-npm-version >=2.0.0
package.json
{
"scripts": {
"prepublish": "assert-npm-version >=2.0.0"
}
}
Why?
When working with multiple people and / or node versions, it can quickly become
confusing what features npm
has, or doesn't have. By asserting that npm
is
at least a certain version, at least some npm
related issues can be caught
early.