1 min readMay 4, 2019
I did this something like this…
- In package.json, add the following
“preinstall”: “npm run requirements-check”,
“requirements-check”: “node scripts/check_node_version.js”, - And add the following files in scripts/ directory.
https://gist.github.com/abhisekp/760f6e5f162e10ca007bd26b0a52ca5d#file-check_node_version-js