0
0

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-REDを開始する -「n」でバージョン管理編

Last updated at Posted at 2019-05-27

Node.js V10 をインストールしたら、Node-RED の一部モジュールが対応していなかった。
「n」を使用してバージョン管理することにしました。
※今回はV9の最終版にしたら、モジュールのエラーが解消されました。

参考サイト

下記サイトを参考にさせて頂きました。

Node.js 環境構築メモ
https://qiita.com/megane42/items/dcd71c317b0062522068

Node-RED日本ユーザー会
https://nodered.jp/docs/hardware/raspberrypi

環境

$ cat /etc/issue
Raspbian GNU/Linux 9 \n \l
$ uname -a
Linux raspberrypi 4.19.42-v7+ #1219 SMP Tue May 14 21:20:58 BST 2019 armv7l GNU/Linux
$ arch
armv7l

バージョン管理ツール 「 n 」 のインストール

curl -L https://git.io/n-install | bash

新しいターミナルを立ち上げる

Node.js のインストール

n list でダウンロード可能なバージョン一覧を表示
n 9.11.2 でバージョン(今回は 9.22.2 )を指定してインストール

Node-RED のインストール

npm install -g --unsafe-perm node-red

Node-RED version: v0.20.5
Node.js version: v9.11.2

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?