Hey,
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
node -v
v8.10.0
npm -v
3.5.2
sudo npm install -g --unsafe-perm node-red
Warnings:
npm WARN ws@7.4.1 requires a peer of bufferutil@^4.0.1 but none was installed.
npm WARN ws@7.4.1 requires a peer of utf-8-validate@^5.0.2 but none was installed.
sudo npm install -g pm2
Warnings:
npm WARN optional Skipping failed optional dependency /pm2/chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@2.1.3
npm WARN ws@7.2.5 requires a peer of bufferutil@^4.0.1 but none was installed.
npm WARN ws@7.2.5 requires a peer of utf-8-validate@^5.0.2 but none was installed.
sudo which node-red
/usr/local/bin/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)
[PM2] Done.
โโโโโโฌโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโฌโโโโโโโโโโโโฌโโโโโโโโโโโฌโโโโโโโโโโโ
โ 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
sudo -i
cd /etc/init.d/
ls -a
--> 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
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.
Stefan