#nvm #install
安装或更新
安装或更新脚本
安装 nvm或者更新nvm可以直接执行下列命令
Bash
|
|
Bash
|
|
Running either of the above commands downloads a script and runs it. The script clones the nvm repository to ~/.nvm, and attempts to add the source lines from the snippet below to the correct profile file (~/.bash_profile, ~/.zshrc, ~/.profile, or ~/.bashrc).
脚本逻辑:将 nvm 存储库克隆到“~/.nvm”,并尝试将下面代码片段中的源代码行添加到正确的配置文件(“~/.bash_profile”、“~/.zshrc”、“~/.profile”) ,或~/.bashrc`)。
Bash
|
|
nvm 常用命令
nvm install stable安装最新稳定版nodenvm install <version>安装指定版本,如:安装v14.4.0,nvm install v14.4.0nvm uninstall <version>删除已安装的指定版本,语法与install类似nvm use <version>切换使用指定的版本nodenvm ls列出所有安装的版本nvm alias default <version>如:nvm alias default v11.1.0