From 5d08a69f83fd870a0275590610aa3685a7787f84 Mon Sep 17 00:00:00 2001 From: "Fred K. Schott" Date: Thu, 1 Feb 2024 13:25:11 -0800 Subject: [PATCH] fix semver check (#9937) --- packages/astro/astro.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/astro/astro.js b/packages/astro/astro.js index 059024621a..4ba0c800d6 100755 --- a/packages/astro/astro.js +++ b/packages/astro/astro.js @@ -20,8 +20,8 @@ async function main() { const version = process.versions.node; // Fast-path for higher Node.js versions if ((parseInt(version) || 0) <= skipSemverCheckIfAbove) { + const semver = await import('semver'); try { - const semver = await import('semver'); if (!semver.satisfies(version, engines)) { await errorNodeUnsupported(); return;