11
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Raspberry piのNode.jsをアップデートする

Last updated at Posted at 2016-04-03

Raspberry PiのNode.jsをアップデートする手順

Raspbian初期状態だとNode.jsのバージョンがv0.10.xで古そうなので、最新(記事記載時点:v5.10.0)にアップデートする手順を記載。

基本、オフィシャルのdebian系の手順を参照。

環境

  • Raspberry Pi2 Model B
  • Raspbian Jessie

手順

  1. $ curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash - ... Node.jsをv5系の最新に紐づける
  2. $ sudo apt-get install -y nodejs ... Node.jsをインストールする

これだけ

動作確認

  • $ node -v
  • $ nodejs -v
  • $ npm -v

などとやってみてバージョンが更新されていることを確認する。

11
14
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
11
14

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?