一. 新版 nodejs 安装

这里强烈推荐使用 nvm (Node版本管理器),其它方式的安装或多或少都有些问题。

具体步骤如下:

1. 通过 git 指令下载nvm

执行指令如下,我们把nvm下载到 /root/git/ 中去(记得要先安装 git)