前提:已经安装nvm并且安装了两个版本的node.js 1、使用nvm查看本机安装的node.js(所有) nvm ls 或者 nvm list 2、查看当前使用node版本 nvm current 3、使用nvm切换node版本 nvm use <node版本号>