mirror of
https://github.com/sasjs/lint.git
synced 2025-12-10 09:34:34 +00:00
17 lines
436 B
JavaScript
17 lines
436 B
JavaScript
const result = process.versions
|
|
if (result && result.node) {
|
|
if (parseInt(result.node) < 14) {
|
|
console.log(
|
|
'\x1b[31m%s\x1b[0m',
|
|
`❌ Process failed due to Node Version,\nPlease install and use Node Version >= 14\nYour current Node Version is: ${result.node}`
|
|
)
|
|
process.exit(1)
|
|
}
|
|
} else {
|
|
console.log(
|
|
'\x1b[31m%s\x1b[0m',
|
|
'Something went wrong while checking Node version'
|
|
)
|
|
process.exit(1)
|
|
}
|