Linux command
nvm 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Install Node.js version
nvm install [version]
Install latest LTS
nvm install --lts
Use specific version
nvm use [version]
List installed versions
nvm ls
List available versions
nvm ls-remote
Set default version
nvm alias default [version]
说明
nvm is Node Version Manager. Manages multiple Node.js installations. The tool enables version switching per project. Shell-based version management.
参数
- install _VERSION_
- Install Node.js version.
- use _VERSION_
- Switch to version.
- ls
- List installed versions.
- ls-remote
- List available versions.
- alias _NAME_ _VERSION_
- Create version alias.
- uninstall _VERSION_
- Remove version.
- --help
- Display help information.
FAQ
What is the nvm command used for?
nvm is Node Version Manager. Manages multiple Node.js installations. The tool enables version switching per project. Shell-based version management.
How do I run a basic nvm 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?
Install Node.js version.