mirror of
https://github.com/withastro/astro.git
synced 2024-12-16 21:46:22 -05:00
fix semver check (#9937)
This commit is contained in:
parent
4467441896
commit
5d08a69f83
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue