https://www.npmjs.com/package/engines-checker
- Node.js >= 10.0
$ npm i -D engines-checker
[package.json]
{
"name": "some-projects",
"version": "0.0.1",
"engines": {
"node": ">=10",
"npm": ">=5.6.0"
},
"scripts": {
"build": "...",
"start": "...",
"prebuild": "engines-checker",
"prestart": "engines-checker"
},
"devDependencies": {
"husky": "^0.14.3"
}
}
Most of the frontend developers works with me strongly loves thier local environments though i created docker images for some projects.