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;