mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-07 22:14:03 -05:00
fix: detect corepack node version need to equal minimize (#703)
This commit is contained in:
@@ -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}.`);
|
||||
|
||||
Reference in New Issue
Block a user