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;
|
const version = process.versions.node;
|
||||||
// Fast-path for higher Node.js versions
|
// Fast-path for higher Node.js versions
|
||||||
if ((parseInt(version) || 0) <= skipSemverCheckIfAbove) {
|
if ((parseInt(version) || 0) <= skipSemverCheckIfAbove) {
|
||||||
|
const semver = await import('semver');
|
||||||
try {
|
try {
|
||||||
const semver = await import('semver');
|
|
||||||
if (!semver.satisfies(version, engines)) {
|
if (!semver.satisfies(version, engines)) {
|
||||||
await errorNodeUnsupported();
|
await errorNodeUnsupported();
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue