mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
fix: detect corepack node version need to equal minimize (#703)
This commit is contained in:
parent
0fdc401f91
commit
5bb7bdb9f8
@ -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}.`);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user