This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to install additional nodes
#13
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:

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.
Reply


Messages In This Thread
How to install additional nodes - by SkipperEarly - 2017-05-05, 07:13 AM
RE: How to install additional nodes - by PaddyB - 2017-05-05, 12:48 PM
RE: How to install additional nodes - by Saqqara - 2017-05-05, 11:02 PM
RE: How to install additional nodes - by kste - 2017-05-11, 12:26 PM
RE: How to install additional nodes - by PaddyB - 2017-05-06, 06:57 AM
RE: How to install additional nodes - by Lazzz - 2017-06-15, 08:15 AM
RE: How to install additional nodes - by Sailoog - 2017-05-16, 05:57 PM
RE: How to install additional nodes - by abarrow - 2017-07-05, 05:45 PM
RE: How to install additional nodes - by abarrow - 2017-07-07, 07:40 PM
RE: How to install additional nodes - by abarrow - 2017-07-08, 02:03 PM
RE: How to install additional nodes - by jim321 - 2017-07-10, 09:51 PM
RE: How to install additional nodes - by Lazzz - 2017-07-16, 08:44 AM
RE: How to install additional nodes - by JD1 - 2017-07-09, 12:05 AM
RE: How to install additional nodes - by Lazzz - 2017-07-30, 06:37 AM
RE: How to install additional nodes - by JD1 - 2017-07-30, 06:43 AM
RE: How to install additional nodes - by abarrow - 2017-07-30, 07:10 AM

Forum Jump:


Users browsing this thread: 3 Guest(s)