verify-node-version
v0.0.7
Published
Checks the user's node and npm versions against those listed in .nvmrc/.node-version and .npmrc/.npm-version
Downloads
2
Readme
verify-node-version
A super simple module that checks a user's node/npm versions against your .nvmrc and .npmrc.
Usage
import verifyNodeVersion from 'verify-node-version';
verifyNodeVersion();
If the versions match, the function returns undefined
. If the versions don't match, it will display a pretty little explanation and process.exit(1)
.
> npm start
>
> The required node version is 5.9.1 and you're currently running 6.7.0