Spaces:
Sleeping
Sleeping
File size: 469 Bytes
b6ecafa 34b97d9 b6ecafa 34b97d9 b6ecafa 34b97d9 b6ecafa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | #!/usr/bin/env node
const MIN_NODE_MAJOR = 22
const current = process.versions.node
const currentMajor = Number.parseInt(current.split('.')[0] || '', 10)
if (currentMajor < MIN_NODE_MAJOR) {
console.error(
[
`error: Mission Control requires Node ${MIN_NODE_MAJOR} or later, but found ${current}.`,
'use `nvm use 22` (recommended LTS) or any later version before installing, building, or starting the app.',
].join('\n')
)
process.exit(1)
}
|