ui
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
const semver = require('semver');
|
||||
const pkg = require('../package.json');
|
||||
|
||||
module.exports.assertSupportedNodeVersion = function assertSupportedNodeVersion() {
|
||||
if (!semver.satisfies(process.versions.node, pkg.engines.node)) {
|
||||
throw new Error(
|
||||
`You are using an unsupported version of Node. Please update to at least Node v12.14`
|
||||
);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user