LoginSignup
6

More than 5 years have passed since last update.

[環境構築] Node.js on Ubuntu 16.04

Posted at

Ubuntu 16.04が出たのでNode.js環境の構築手順をまとめます。
本記事はNode.jsのInstallation Guideに則っています。

Step1

Node.js 6 をインストールします。

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

Step2

ビルドツールもインストールします。(npmからネイティブアドオンをコンパイルまたはインストールするため)

$ sudo apt-get install -y build-essential

以上。

[参考]
https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6