node安装

环境

​ ubuntu18.04

node下载

https://nodejs.org/en/

安装步骤

> curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
> sudo apt-get install -y nodejs

安装包指定版本:

​ https://nodejs.org/dist/

源码安装:

 > wget https://nodejs.org/dist/v10.9.0/node-v10.9.0-linux-x64.tar.xz    // 下载
 > tar xf  node-v10.9.0-linux-x64.tar.xz       // 解压
 > cd node-v10.9.0-linux-x64/                  // 进入解压目录

​ 再配置node到环境变量中