NVM fails to install node when passed a SemVer range.
Maintainers usually reply within 1 day
@Shadaan786 is already working on this.
Since Oct 3, 2026.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 74/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- bash, docker, node.js
- Domain
- devops, infrastructure
Research direction
Start by reading .devcontainer/Dockerfile and .gitpod/.gitpod.yml, where the issue reports passing engines.node to nvm install; check how the value is read and used. Reproduce the container build or Codespaces setup, and consider the work done when the semantic version range no longer causes shell errors and the container builds successfully.
Written by the indexing model from the issue text.
Description
Description:
When a semantic version range such as >=22.22.3 <23 || >=24.15.0 <25 is passed to NVM then NVM fails to install the Node.js because the value of engines.node in package.json is a semantic version range, while development environment needs to pass a concrete Node.js version to nvm install rather than a range of version, also the unquoted command substitution causes bash to interpret the parts of semantic version range as shell operators resulting in errors such as:
3.269 bash: line 1: 23: No such file or directory
3.270 bash: line 1: 25: No such file or directory
Because bash interprets < to take input from a file or can say input redirection operator.
Steps to reproduce:
- Start a dev container using .devcontainer/Dockerfile or create a github codespaces.
- During the container build, the Node.js version is read from engines.node in package.json.
- The resulting semantic version range is passed to nvm install.
- Observe the No such file or directory errors as mentioned above.
Expected behavior:
No errors like No such file/directory or not being ended in recovery container, the Dockerfile should be builded successfully.
Actual behavior:
The error logs shows up when buildng the container using node semantic versioning range or in github codespaces, which results in failure to build the container or end up in recovery container in codespaces.
Server Setup Information:
- Version of Rocket.Chat Server: N/A
- License Type: N/A
- Number of Users: N/A
- Operating System: Ubuntu 22.04.5 LTS
- Deployment Method: Docker / Dev container / github codespaces
- Number of Running Instances: N/A
- DB Replicaset Oplog: N/A
- NodeJS Version: 24.15.0
- MongoDB Version: N/A
Additional context
The issue was reproduced locally by passing the value of engines.node to nvm install in .gitpod/.gitpod.yml and .devcontainer/Dockerfile
Relevant logs:
bash: line 1: 23: No such file or directory
bash: line 1: 25: No such file or directory
- Dominant language
- TypeScript
- Stars
- 46.3k
- Forks
- 14k
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 271
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from RocketChat/Rocket.Chat
-
add back type='tel' to the InputPossibly taken @Smriti-N claimed this 2 days ago. Opentodo type: feature
Difficulty 1/5 Under an hour Newbie friendliness 75/100
RocketChat/Rocket.Chat#43098 ·
Maintainers usually reply within 1 day
-
Safari/WebKit: `#react-root` grows to the content height (`block-size: -webkit-fill-available`), the whole page scrolls and the composer is pushed below the windowPossibly taken @Vaibhav211960 claimed this 2 days ago. Opentype: bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
RocketChat/Rocket.Chat#43068 · 2 comments ·
Maintainers usually reply within 1 day
-
[BUG] `PasswordPolicy.getPasswordPolicy()` returns `forbidRepeatingCharactersCount` even when repeating characters policy is disabledPossibly taken @ydvvdinesh claimed this 9 days ago. Opentype: bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
RocketChat/Rocket.Chat#42872 ·
Maintainers usually reply within 1 day
-
move to .rcx-input-boxPossibly taken @schizophrenicmaniac claimed this 5 days ago. Opentodo
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
RocketChat/Rocket.Chat#42824 · 1 comment ·
Maintainers usually reply within 1 day
-
fix(fuselage): `EmailInput` lets a spread `type` override `type="email"`Possibly taken @schizophrenicmaniac claimed this 10 days ago. Openarea: ui/ux type: bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
RocketChat/Rocket.Chat#42811 · 2 comments ·
Maintainers usually reply within 1 day
All issues in RocketChat/Rocket.Chat
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
outline/outline#14348 · 1 comment ·
Maintainers usually reply within 1 day
-
bug needs-triage
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
[Bug]: Agent import retains quotes in .env API keys followed by inline commentsPossibly taken @yxr-2025 claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
elie222/rakazo#2322 · 1 comment ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
awslabs/visual-asset-management-system#804 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
dsh-market/dsh-market#1027 · 1 comment ·
Maintainers usually reply within 1 day