Node Red Setup Notes - abufitna/test GitHub Wiki

Get the latest Alpine Linux ISO from: https://www.alpinelinux.org/downloads/

Load it up on your device or VM.

Once it loaded run:

setup-alpine

Follow the setup process.

Create a new user account so that you can access remotely.....as ROOT cannot access remotely.

adduser USERNAME

You will need specify a password.

Exit and login using your newly created USER account.

Now you are ready to start the Node-Red install. To run the APK tool you will need to login as root via SU command.

apk add --update nodejs npm
npm install -g --unsafe-perm node-red
npm install pm2 -g

Now you can start Node-Red in the terminal window by typing node-red

Import your flows and verify functionality.

Next you will need to setup PM2 to run at system startup.

pm2 startup

Once done you will need add Node-Red to PM2 so that it is monitored and started at boot as well as restarted automatically if it crashes.

pm2 start node-red
pm2 save