NemoClaw icon indicating copy to clipboard operation
NemoClaw copied to clipboard

[All Platforms][Regression] node version is not upgrading

Open hulynn opened this issue 7 months ago • 5 comments

Description

Description:

node version is not upgraded though the

Environment:- Platform: Brev

  • NemoClaw: v0.0.20

Steps to Reproduce:

Pre-condition: 1. Machine with Node.js version < 22.16 (e.g. Node.js 20.x) source "$HOME/.nvm/nvm.sh" && nvm install 20 && nvm use 20 && node --version && which node && npm --version 2. nvm installed
	Steps:
	1. Run: node --version (confirm below 22.16)
	2. Run: curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash
	3. Observe Node.js upgrade behavior
	4. Run: node --version (after install) </td>
</tr>

Actual:

labuser@2u1g-x570-0313:/mnt/c/Users/local-xiaomingh$ source "$HOME/.nvm/nvm.sh" && nvm install 20 && nvm use 20 && node --version && which node && npm --version
Downloading and installing node v20.20.2...
Downloading https://nodejs.org/dist/v20.20.2/node-v20.20.2-linux-x64.tar.xz...
###################################################################################################################################################################################################### 100.0%
Computing checksum with sha256sum
Checksums matched!
Now using node v20.20.2 (npm v10.8.2)
Now using node v20.20.2 (npm v10.8.2)
v20.20.2
/home/labuser/.nvm/versions/node/v20.20.2/bin/node
10.8.2
labuser@2u1g-x570-0313:/mnt/c/Users/local-xiaomingh$ nvm --version
0.40.4
labuser@2u1g-x570-0313:/mnt/c/Users/local-xiaomingh$ npm --version
10.8.2
labuser@2u1g-x570-0313:/mnt/c/Users/local-xiaomingh$ node --version
v20.20.2
labuser@2u1g-x570-0313:/mnt/c/Users/local-xiaomingh$ curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash
   ███╗   ██╗███████╗███╗   ███╗ ██████╗  ██████╗██╗      █████╗ ██╗    ██╗
   ████╗  ██║██╔════╝████╗ ████║██╔═══██╗██╔════╝██║     ██╔══██╗██║    ██║
   ██╔██╗ ██║█████╗  ██╔████╔██║██║   ██║██║     ██║     ███████║██║ █╗ ██║
   ██║╚██╗██║██╔══╝  ██║╚██╔╝██║██║   ██║██║     ██║     ██╔══██║██║███╗██║
   ██║ ╚████║███████╗██║ ╚═╝ ██║╚██████╔╝╚██████╗███████╗██║  ██║╚███╔███╔╝
   ╚═╝  ╚═══╝╚══════╝╚═╝     ╚═╝ ╚═════╝  ╚═════╝╚══════╝╚═╝  ╚═╝ ╚══╝╚══╝
  Launch OpenClaw in an OpenShell sandbox.  v0.0.20
[1/3] Node.js
  ──────────────────────────────────────────────────
[WARN]  Node.js v20.20.2, npm major 10 found but NemoClaw requires Node.js >=22.16.0 and npm >=10 — upgrading via nvm…
[INFO]  nvm installer integrity verified
  ✓  Installing nvm...
  ✓  Installing Node.js 22...
default -> 22 (-> v22.22.2)
[INFO]  Node.js installed: v22.22.2
[INFO]  Runtime OK: Node.js v22.22.2, npm 10.9.7
[2/3] NemoClaw CLI
  ──────────────────────────────────────────────────
[INFO]  Installer payload is not a persistent source checkout — installing from GitHub…
[INFO]  Installing NemoClaw from GitHub…
[INFO]  Resolved install ref: latest
  ✓  Cloning NemoClaw source
  ✓  Preparing OpenClaw package
  ✓  Installing NemoClaw dependencies
  ✓  Building NemoClaw CLI modules
  ✓  Building NemoClaw plugin
  ✓  Linking NemoClaw CLI
[INFO]  Created user-local shim at /home/labuser/.local/bin/nemoclaw
[INFO]  Created user-local shim at /home/labuser/.local/bin/nemoclaw
[INFO]  Verified: nemoclaw is available at /home/labuser/.local/bin/nemoclaw
.......

labuser@2u1g-x570-0313:/mnt/c/Users/local-xiaomingh$ node --version
v20.20.2
Expect:
Node is updated to latest >22.x

[NVB#6097713]

hulynn avatar Apr 21 '26 14:04 hulynn

Reproduced on NemoClaw v0.0.21. Nvbug

PrachiShevate-nv avatar Apr 21 '26 21:04 PrachiShevate-nv

@cjagwani @ericksoa able to reproduce the issue with v0.0.28 Please reopen this issue Below are steps

source "$HOME/.nvm/nvm.sh" && nvm install 20 && nvm use 20 && node --version && which node && npm --version
curl -fsSL https://www.nvidia.com/nemoclaw.sh | bash
node --version

Rohitkalidindi avatar Apr 28 '26 20:04 Rohitkalidindi

@wscurran node version is not updated though install mentions it is upgraded


[WARN]  Node.js v20.20.2, npm major 10 found but NemoHermes requires Node.js >=22.16.0 and npm >=10 — upgrading via nvm…
[INFO]  nvm installer integrity verified
  ✓  Installing nvm...
  ✓  Installing Node.js 22...

aerial@spark-6087:~$ node --version
v20.20.2

Rohitkalidindi avatar May 08 '26 18:05 Rohitkalidindi

Stale-issue verification — automated

Reported on: v0.0.20 Verified on: v0.0.38 (current latest) Verification mode: runtime reproduction on Brev n2d-highmem-2 — Node 20 pre-activated via nvm to mirror reporter's setup.

Three empirical facts

Scenario node --version after Notes
Same shell that ran `curl …nemoclaw.sh bash` v20.20.2
Same shell after running the hint command from install.sh output (source "$NVM_DIR/nvm.sh" && nvm use 22) v22.22.2 Workaround #1 — ✅ works
New terminal (bash -l reads ~/.bashrc → nvm.sh → default alias 22) v22.22.2 Workaround #2 — ✅ works

Why the same shell is unchanged

nvm is a shell function; install.sh runs as a child process. The child's nvm use 22 mutates its own subshell, which then exits — subprocess PATH changes cannot propagate to the parent. Unix process model, not a NemoClaw choice. Node 22 IS installed and set as default; workarounds #1 or #2 activate it. PR #2298 (v0.0.23, source has // See issue #2178. at the fix site) added the explicit hint, captured verbatim in our run.

Asking the right person

@hulynn @Rohitkalidindi — when you ran node --version after install and saw v20, did you also try one of:

  • source "${NVM_DIR:-$HOME/.nvm}/nvm.sh" && nvm use 22 in the same terminal, or
  • opening a fresh terminal?

Both are verified to land at v22.22.2 above. If you tried either and it didn't work, please reopen with the output.

@cjagwani @PrachiShevate-nv — flagging for label decision. The bug-as-strictly-described is structurally unchangeable from a curl | bash installer; PR #2298 is the team's best-available answer. Consider status: wont-fix if you agree.

No label applied by this verification run.

prekshivyas avatar May 11 '26 15:05 prekshivyas

@hulynn closing. See @prekshivyas comment above and re-open if this is still blocking QA.

wscurran avatar May 13 '26 16:05 wscurran