根据.nvmrc自动切换项目所需node版本

vi ~/.bash_profile

插入一下内容

souce ~/.bash_profile

再打开命令行就会根据.nvmrc切换node版本。

注意:要先安装nvm