LoginSignup
11
10

More than 5 years have passed since last update.

raspberry Piにnode.jsをいれてみる。

Last updated at Posted at 2015-10-04

自分用のメモ

nodebrewのインストール

curl -L git.io/nodebrew | perl - setup

bashrcへの設定

echo 'export PATH=$HOME/.nodebrew/current/bin:$PATH' >> ~/.bashrc
source .bashrc 

node.jsのインストール

使えるバージョンの確認

nodebrew ls-all

v4.1.1

v0.XX.XXが最新だと思っていたが、
こちらをみると上記のバージョン最新だった(投稿日付時点)

そのままインストール。

nodebrew install-binary v4.1.1 

ARM6lのバイナリを取得してインストール
ARM版がfetchされる。

fetch: http://nodejs.org/dist/v4.1.1/node-v4.1.1-linux-armv6l.tar.gz
######################################################################## 100.0%

v4.1.1を設定

nodebrew use v4.1.1

動作確認

pi@raspberrypi ~ $ npm -v
2.14.4

完了

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