Skip to content

Commit

Permalink
fix semver check (#9937)
Browse files Browse the repository at this point in the history
  • Loading branch information
FredKSchott authored Feb 1, 2024
1 parent 4467441 commit 5d08a69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/astro/astro.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d08a69

Please sign in to comment.