I rented a VPS-Server recently and want to try Node-Red on the Server as well, after everything works well already on my Raspberry Pi. But it would also be great to access the data from everywhere.
Unfortunately I do not get Node-Red running on my server. For the installation I followed more or less the tutorial on https://www.markjunghanns.de/index.php/2016/10/19/node-red-installation-ubuntu/
Unfortunately this is only avaliable in german.
Here is what I entered and received in the terminal:
sudo apt-get install npm //no problems
sudo npm install -g --unsafe-perm node-red
npm WARN email@example.com requires a peer of bufferutil@^4.0.1 but none was installed.
npm WARN firstname.lastname@example.org requires a peer of utf-8-validate@^5.0.2 but none was installed.
sudo npm install -g pm2
npm WARN optional Skipping failed optional dependency /pm2/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: email@example.com
npm WARN firstname.lastname@example.org requires a peer of bufferutil@^4.0.1 but none was installed.
npm WARN email@example.com requires a peer of utf-8-validate@^5.0.2 but none was installed.
sudo which node-red
sudo pm2 start /usr/local/bin/node-red
[PM2] Spawning PM2 daemon with pm2_home=/home/ssh_user/.pm2
[PM2] PM2 Successfully daemonized
[PM2] Starting /usr/local/bin/node-red in fork_mode (1 instance)
│ id │ name │ mode │ ↺ │ status │ cpu │ memory │
│ 0 │ node-red │ fork │ 0 │ online │ 0% │ 16.5mb │
sudo pm2 status
--> same result
sudo pm2 startup
sudo pm2 save
--> no pm2-init.sh avaliable to change USER=root to USER=hans
Has anyone an idea, what the problem could be? Initially I had node-red already running with Plesk as Admin-Panel installed, but now I changed to KeyHelp and it does not work any more. But I'm not sure, if this is the reason or something else.
Yesterday I already tried another solution:
npm install -g npm-install-peers
There doesn't seem to be a package.json here
If I try to reinstall node-red, then the peers seem still not to be installed. I would really appreciate, if someone has some idea, how to install node-red on my server.