Install Node-RED on Synology DiskStation
April 25th, 2019 2:08 PM | by Alfred Markus Paar | Posted in SmartHome
- Install
- Install Node.js v8 via Package Center
- Connect via SSH and run: sudo npm install -g –unsafe-perm node-red
- Locate node-red: sudo find / -iname node-red
- Start Node-RED: node /volume1/@appstore/Node.js_v8/usr/local/bin/node-red
- Test in browser: <ip-address>:1880
- CTRL+C to abort
- Autostart Configuration
- Install forver: sudo npm install -g forever
- Locate forever: sudo find / -iname forever
- Create a Startup Script in any directory e.g.: /volume1/system-scripts/node-red/node-red_startup.sh
- #!/bin/sh
/volume1/@appstore/Node.js_v8/usr/local/bin/forever start /volume1/@appstore/Node.js_v8/usr/local/bin/node-red
- #!/bin/sh
- TODO: run startup script at reboot
Leave a Reply