2016年7月19日 星期二

Ubuntu安裝nodeJS


安裝nodeJS
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
sudo apt-get install -y nodejs

Optional: install build tools
To compile and install native addons from npm you may also need to install build tools:

sudo apt-get install -y build-essential

測試安裝是否成功
node -v
npm -v

參考網址:https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions