mirror of
https://github.com/hanzoai/dev.git
synced 2026-10-25 03:32:32 +00:00
Conflict resolution: - Accepted remote version bumps to package.json files (0.6.51) - Kept our workflow fix (Homebrew continue-on-error) - Included new platform components from parallel agents
14 lines
433 B
JavaScript
14 lines
433 B
JavaScript
// preinstall.js - Check Node.js version compatibility
|
|
|
|
const MIN_NODE_VERSION = 18;
|
|
|
|
const nodeVersion = process.versions.node;
|
|
const major = parseInt(nodeVersion.split('.')[0], 10);
|
|
|
|
if (major < MIN_NODE_VERSION) {
|
|
console.error(`hanzo-node requires Node.js ${MIN_NODE_VERSION} or higher.`);
|
|
console.error(`Current version: ${nodeVersion}`);
|
|
console.error(`Please upgrade Node.js: https://nodejs.org/`);
|
|
process.exit(1);
|
|
}
|