命令行工具
nvm - Node 版本管理工具
node 版本管理工具,可以快捷切换 node 版本
安装前,需要卸载已有 node
常用命令
sh
# 安装指定版本的 node
nvm install <version>
# 卸载指定版本的 node
nvm uninstall <version>
# 查看已安装的 node 版本
nvm ls
# 切换 node 版本
nvm use <version>
# 设置默认版本(可选)
nvm alias default <version>Volta - 新 Node 版本管理工具
速度更快,使用更方便的 Node.js 版本管理工具
参考
安装和使用教程发布在博客:点击查看
命令
sh
USAGE:
volta [FLAGS] [SUBCOMMAND]
FLAGS:
--verbose
Enables verbose diagnostics
--quiet
Prevents unnecessary output
-v, --version
Prints the current version of Volta
-h, --help
Prints help information
SUBCOMMANDS:
fetch Fetches a tool to the local machine
install Installs a tool in your toolchain
uninstall Uninstalls a tool from your toolchain
pin Pins your project's runtime or package manager
list Displays the current toolchain
completions Generates Volta completions
which Locates the actual binary that will be called by Volta
setup Enables Volta for the current user / shell
help Prints this message or the help of the given subcommand(s)