π OpenHands: AI-Driven Development
fix: detect corepack node version need to equal minimize (#703)
mashiro5bb7bdb9f8a8
diff --git a/frontend/scripts/detect-node-version.js b/frontend/scripts/detect-node-version.jsindex f95c08fc53..d8c7de2a19 100644--- a/frontend/scripts/detect-node-version.js+++ b/frontend/scripts/detect-node-version.js@@ -20,7 +20,7 @@ function compareVersions(v1, v2) {const currentVersion = process.version.substring(1);const targetVersion = "18.17.1";-if (compareVersions(currentVersion, targetVersion) > 0) {+if (compareVersions(currentVersion, targetVersion) >= 0) {console.log(`Current Node.js version is ${currentVersion}, corepack is supported.`);} else {console.error(`Current Node.js version is ${currentVersion}, but corepack is unsupported. Required version: ^${targetVersion}.`);