I want to only allow certain version of node and npm before the user can run his npm install
on my module.
In the NPM documentation, there is an engine
attribute, dedicated to this task:
"engines": {
"node": ">=4.0.0",
"npm": ">=3.0.0"
}
These parameters will only allow node and npm versions up to 4 and 3.
However, the documentation says that the engine-strict
attribute should be enabled in order to check the versions. On engine-strict
, it is said that:
This feature was deprecated with npm 3.0.0
So, is there a way, with npm3, to define minimal Node and NPM versions for a module?