Assert that npm
is at least a certain version.
$ npm install assert-npm-version
$ assert-npm-version >=2.0.0
{
"scripts": {
"prepublish": "assert-npm-version >=2.0.0"
}
}
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.