[BUG] Can't get Setup Script of Cloud Claude (Claude Web) to install Node 24

Resolved 💬 3 comments Opened Mar 23, 2026 by andruhon Closed Apr 20, 2026

Preflight Checklist

  • [x] I have searched existing issues and this hasn't been reported yet
  • [x] This is a single bug report (please file separate reports for different bugs)
  • [x] I am using the latest version of Claude Code

What's Wrong?

I have this setup script set for my environment (tried different varitions)

Network access: Full

Setup Script

#!/bin/bash
apt update && apt install -y gh

# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash

# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"

# Download and install Node.js:
nvm install 24

nvm alias default 24

nvm use 24

However when I later ask claude "Run node --version", it responds

Check Node.js version
Check Node.js version
Bash
node --version
v22.22.0

Node.js version 22.22.0 is installed.

What Should Happen?

The version should be 24

Error Messages/Logs

Steps to Reproduce

I have this setup script set for my environment (tried different varitions)

Network access: Full

Setup Script

#!/bin/bash
apt update && apt install -y gh

# Download and install nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash

# in lieu of restarting the shell
\. "$HOME/.nvm/nvm.sh"

# Download and install Node.js:
nvm install 24

nvm alias default 24

nvm use 24

However when I later ask claude "Run node --version", it responds

Check Node.js version
Check Node.js version
Bash
node --version
v22.22.0

Node.js version 22.22.0 is installed.

Claude Model

None

Is this a regression?

No, this never worked

Last Working Version

_No response_

Claude Code Version

2.1.81

Platform

Anthropic API

Operating System

Ubuntu/Debian Linux

Terminal/Shell

Terminal.app (macOS)

Additional Information

_No response_

View original on GitHub ↗

This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗