I am searching for a way to break the build, if a user is using a different node.js version as defined in the project.
Ideally to put some checks in grunt or bower or np
You can use the engines property in the package.json file
engines
package.json
For example, if you want to make sure that you have a minimum of node.js version 6.9 and a maximum of 6.10, then you can specify the following
package.json { "name": "Foo", .... "engines": { "node": ">=6.9 <=6.10" } }