Skip to content

Support node as a version request - #1618

Open
pederbe wants to merge 1 commit into
Schniz:masterfrom
pederbe:contrib/1506-node-version-request
Open

pederbe wants to merge 1 commit into
Schniz:masterfrom
pederbe:contrib/1506-node-version-request

Conversation

@pederbe

@pederbe pederbe commented Nov 12, 2026

Copy link
Copy Markdown

An .nvmrc containing node currently fails because fnm treats it only as a custom alias. Support this nvm-compatible spelling in version files and command arguments, selecting the latest installed stable version locally or the latest stable release for installation. Existing aliases named node keep their behavior.

The shell regression fails on the original implementation and passes with this change, using a fixed release index and real Node.js executables in Bash, Zsh and Fish.

Fixes #1506.

@pederbe
pederbe marked this pull request as ready for review November 12, 2026 16:23
@Schniz

Schniz commented Nov 13, 2026

Copy link
Copy Markdown
Owner

so node is latest?

@pederbe

pederbe commented Nov 16, 2026

Copy link
Copy Markdown
Author

so node is latest?

@Schniz Yes, node means “latest stable” in nvm’s .nvmrc syntax. fnm install node selects the latest stable release, and fnm use node selects the latest installed stable version. This lets existing .nvmrc files work unchanged.

It resolves the version on each command rather than using fnm’s stored latest alias. Existing custom aliases named node still take precedence.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow support use node as version

2 participants