Linux command
nvm.fish 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Install
nvm install [version]
Install
nvm install lts
Install
nvm install
Use
nvm use [version]
List installed
nvm list
List all available
nvm list-remote
Set default
set --universal nvm_default_version [version]
Uninstall
nvm uninstall [version]
说明
nvm.fish is a pure Fish shell implementation of Node Version Manager, created by jorgebucaran. It provides a lightweight way to install, switch between, and manage multiple Node.js versions directly within the Fish shell. Unlike the original bash-based nvm, nvm.fish is written entirely in Fish with no external dependencies. It supports .nvmrc and .node-version files for automatic version switching per project, and is XDG Base Directory compliant. Installation is typically done via Fisher (`fisher install jorgebucaran/nvm.fish`) or by manually copying the functions and completions.
参数
- install _VERSION_
- Install a Node.js version. Accepts specific versions (v18.4.0), partial versions (v18), or aliases (latest, lts).
- use _VERSION_
- Activate an installed Node.js version in the current environment.
- list
- List installed Node.js versions, including system Node if present.
- list-remote
- Show all available Node.js versions from the mirror.
- current
- Show the currently active Node.js version.
- uninstall _VERSION_
- Remove an installed Node.js version.
FAQ
What is the nvm.fish command used for?
nvm.fish is a pure Fish shell implementation of Node Version Manager, created by jorgebucaran. It provides a lightweight way to install, switch between, and manage multiple Node.js versions directly within the Fish shell. Unlike the original bash-based nvm, nvm.fish is written entirely in Fish with no external dependencies. It supports .nvmrc and .node-version files for automatic version switching per project, and is XDG Base Directory compliant. Installation is typically done via Fisher (`fisher install jorgebucaran/nvm.fish`) or by manually copying the functions and completions.
How do I run a basic nvm.fish example?
Run `nvm install [version]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does install _VERSION_ do in nvm.fish?
Install a Node.js version. Accepts specific versions (v18.4.0), partial versions (v18), or aliases (latest, lts).