nvm 知识点

事项 作用
`curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh bash`
nvm alias default system 设置nvm默认版本,为系统安装版本(The first version installed becomes the default. New shells will start with the default version of node (e.g., nvm alias default),因此可以使用此命令切回系统安装版本)
command -v nvm 验证安装是否成功
nvm --version 查看nvm版本
nvm install 6.14.4 安装指定node版本
nvm ls 安装了哪些版本
nvm ls-remote 有哪些版本可供安装
nvm use 6.14.4 使用指定node版本
nvm use system 使用系统安装版本

posted on 2019-04-17 19:20  cag2050  阅读(203)  评论(0编辑  收藏  举报

导航