summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpackages/astro/astro.js2
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;