Posted at

UbuntuにNode-REDを載せたときのメモ

More than 1 year has passed since last update.

node.jsとnpmを準備

sudo apt-get install nodejs-legacy

node -v

sudo apt-get install npm

npm -v

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

[bcrypt] Success: "/usr/lib/node_modules/node-red/node_modules/bcrypt/lib/binding/bcrypt_lib.node" is installed via remote

+ node-red-admin@0.1.3

+ node-red@0.18.7

added 421 packages in 27.315s

起動

node-red

ブラウザから以下にアクセス

http://127.0.0.1:1880/#flow/5ce51e23.3cc6b

場合によってポートを開けるなど

sudo ufw allow 1880

参考(そのまんままんま)

https://www.digitalocean.com/community/tutorials/how-to-connect-your-internet-of-things-with-node-red-on-ubuntu-16-04