nodejs环境搭建
nvm:管理各个node版本,便于不同项目使用不同node版本; Node:无法可说,主角 npm:node的媳妇兼秘书,安装卸载node中间件 安装nvm // 随便用那个都行 curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash nvm example Example: nvm install 8.0.0 Install a specific version number nvm use 8.0 Use the latest available 8.0.x release nvm run 6.10.3 app.js Run app.js using node 6.10.3 nvm exec 4.8.3 node app.js nvm alias default 8.1.0 nvm alias default node 卸载 to remove, delete, or uninstall nvm - just remove the $NVM_DIR folder (usually ~/.nvm ) 实操 //