diff options
author | 2024-02-01 13:25:11 -0800 | |
---|---|---|
committer | 2024-02-01 16:25:11 -0500 | |
commit | 5d08a69f83fd870a0275590610aa3685a7787f84 (patch) | |
tree | d151c61370948fe038d0665bb82dbac570885450 | |
parent | 44674418965d658733d3602668a9354e18f8ef89 (diff) | |
download | astro-5d08a69f83fd870a0275590610aa3685a7787f84.tar.gz astro-5d08a69f83fd870a0275590610aa3685a7787f84.tar.zst astro-5d08a69f83fd870a0275590610aa3685a7787f84.zip |
fix semver check (#9937)
-rwxr-xr-x | packages/astro/astro.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/astro/astro.js b/packages/astro/astro.js index 059024621..4ba0c800d 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; |