2017-07-07, 07:40 PM
Okay, removing the .git file in node-red-contrib-freeboard broke node-RED completely for me.
This workaround allowed me to install node-red-node-arduino. You'll have to do this from the command line, as node-RED (on OpenPlotter) doesn't start if node-red-contrib-freeboard is not there. Basically you are moving node-red-contrib-freeboard temporarily out of the way, changing ownership of the contents of the .bin folder, installing the new node, and then moving node-red-contrib-freeboard back:
I'm not sure if chown-ing the contents of .bin is actually necessary - it might be possible to run npm with sudo. I also don't know the consequences of the items in .bin being owned by pi rather than root. Just saying this appears to have worked for me.
I'm testing the result now, so I can't guarantee this won't break your system. It can see the arduino nodes in my node-RED editor now.
This was done on my test system. I'm going to play with it a little before I move it to my live system.
This workaround allowed me to install node-red-node-arduino. You'll have to do this from the command line, as node-RED (on OpenPlotter) doesn't start if node-red-contrib-freeboard is not there. Basically you are moving node-red-contrib-freeboard temporarily out of the way, changing ownership of the contents of the .bin folder, installing the new node, and then moving node-red-contrib-freeboard back:
Code:
mkdir /home/pi/freeback
mv /home/pi/.node-red/node_modules/node-red-contrib-freeboard /home/pi/freeback/
sudo chown -R pi:pi /home/pi/.node-red/node_modules/.bin/
cd /home/pi/.node-red
npm i --unsafe-perm node-red-node-arduino
mv /home/pi/freeback/node-red-contrib-freeboard /home/pi/.node-red/node_modules/
sudo reboot
I'm not sure if chown-ing the contents of .bin is actually necessary - it might be possible to run npm with sudo. I also don't know the consequences of the items in .bin being owned by pi rather than root. Just saying this appears to have worked for me.
I'm testing the result now, so I can't guarantee this won't break your system. It can see the arduino nodes in my node-RED editor now.
This was done on my test system. I'm going to play with it a little before I move it to my live system.