mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
ci: Use node.js 22 by default. Add initial support for node.js 24 (#16018)
This commit is contained in:
committed by
GitHub
parent
3bdbdfe6ce
commit
52a9d4b3d9
@@ -18,20 +18,17 @@ if (process.argv.length === 2) {
|
||||
process.argv.push('start');
|
||||
}
|
||||
|
||||
const ENFORCE_NODE_VERSION_RANGE = process.env.E2E_TESTS !== 'true';
|
||||
if (ENFORCE_NODE_VERSION_RANGE) {
|
||||
const satisfies = require('semver/functions/satisfies');
|
||||
const nodeVersion = process.versions.node;
|
||||
const {
|
||||
engines: { node: supportedNodeVersions },
|
||||
} = require('../package.json');
|
||||
if (!satisfies(nodeVersion, supportedNodeVersions)) {
|
||||
console.error(`
|
||||
const satisfies = require('semver/functions/satisfies');
|
||||
const nodeVersion = process.versions.node;
|
||||
const {
|
||||
engines: { node: supportedNodeVersions },
|
||||
} = require('../package.json');
|
||||
if (!satisfies(nodeVersion, supportedNodeVersions)) {
|
||||
console.error(`
|
||||
Your Node.js version ${nodeVersion} is currently not supported by n8n.
|
||||
Please use a Node.js version that satisfies the following version range: ${supportedNodeVersions}
|
||||
`);
|
||||
process.exit(1);
|
||||
}
|
||||
process.exit(1);
|
||||
}
|
||||
|
||||
// Disable nodejs custom inspection across the app
|
||||
|
||||
Reference in New Issue
Block a user