PokuG stdio.h



Raspberry Pi4にNode-REDをインストール




bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)


pi@SHIMUSHU:~ $ bash <(curl -sL https://raw.githubusercontent.com/node-red/linux-installers/master/deb/update-nodejs-and-nodered)

This script will remove versions of Node.js prior to version 7.x, and Node-RED and
if necessary replace them with Node.js 10.x LTS (dubnium) and the latest Node-RED from Npm.

It also moves any Node-RED nodes that are globally installed into your user
~/.node-red/node_modules directory, and adds them to your package.json, so that
you can manage them with the palette manager.

It also tries to run 'npm rebuild' to refresh any extra nodes you have installed
that may have a native binary component. While this normally works ok, you need
to check that it succeeds for your combination of installed nodes.

To do all this it runs commands as root - please satisfy yourself that this will
not damage your Pi, or otherwise compromise your configuration.
If in doubt please backup your SD card first.

Are you really sure you want to do this ? [y/N] ? y

Would you like to install the Pi-specific nodes ? [y/N] ? y





Running Node-RED install for user pi at /home/pi on raspbian

This can take 20-30 minutes on the slower Pi versions - please wait.

Stop Node-RED ?
Remove old version of Node-RED ?
Remove old version of Node.js ?
Install Node.js LTS ? Node v12.15.0 Npm 6.13.7
Clean npm cache ?
Install Node-RED core ? 1.0.3
Move global nodes to local ?
Install extra Pi nodes ?
Npm rebuild existing nodes -
Add shortcut commands ?
Update systemd script ?

Any errors will be logged to /var/log/nodered-install.log
All done.
You can now start Node-RED with the command node-red-start
or using the icon under Menu / Programming / Node-RED
Then point your browser to localhost:1880 or http://{your_pi_ip-address}:1880

Started 2020年 2月 15日 土曜日 23:44:40 JST - Finished 2020年 2月 15日 土曜日 23:47:56 JST



sudo systemctl enable nodered.service


pi@SHIMUSHU:~ $ sudo systemctl enable nodered.service
Created symlink /etc/systemd/system/multi-user.target.wants/nodered.service → /lib/systemd/system/nodered.service.


sudo reboot



http://<IPアドレス もしくは ホスト名>:1880