apt-get install有时无法直接安装,就用浏览器访问https://nodejs.org/zh-cn/下载压缩包,解压到指定位置,
然后建立软链接,使用 ln -s [源文件位置] [目标文件位置] 的方法,
在/usr/local/bin/ 建立 node 和npm文件的链接
npm的安装源改为阿里家提供的 npm config set registry https://registry.npm.taobao.org