LoginSignup
1
0

More than 3 years have passed since last update.

初心者も簡単!UbuntuでNode.jsの環境構築

Posted at

以前ちょっとLinuxを始めてみようと考えている人のためのVirtualBoxの記事を書いたからせっかくだし早速活用してみよう!ということでVirtuualBox上のUbuntuでNode.jsの環境構築をしてみました。

手順

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

sudo apt install nodejs -y

私の場合、何故かインストールできず、以下のメッセージが表示されました。

E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?

どうやら他のプロセスでadminが使用されているので開けませんとのことだったのでとりあえず再起動 & 再実行。
そしてnpmもインストール

sudo apt install npm -y

たったのこれだけ。インストールが完了しました。

1
0
0

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
1
0