Just installed latest node red onfully up to date new raspbian on pi2. SQLITE and other nodes no problem (sqlite takes ages to install) - but no serial;port - so in NR I went to pallette manager - install node-red-node-serialport - why even now is this standard part if a pi a problem? Before any of this, In the raspbian setup I made sure serial was enabled and debug console disabled.
The NodeJS is the current version 8.11 – all of this was installed today.
I used my own script, used hundreds of times to install node node red nodes, phs and much more. This is the first time I’ve hit a brick wall with serial…
The upgrade script on the node red site – I assume you mean this one
```- ash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)```
I tried the RPI script mentioned above. It used to work, now it simply screrwed up settings.js and removed some nodes - there was notying new sinceearly this afternoon anyway.
Thankfully I'd backed everything up with the wonderful rpi-clone so I'm back to square one - all working but no serial port.
Have you posted the error you get? I don't see it.
Since there is a script provided that does install the node then presumably there is a difference between the environment provided by the script and that provided by your script. Either that or the method of installation is different. You need to find what that difference is.
hi, i've issues too, today... tried on both ubuntu 16.04 and 18.04... here are the logs: https://pastebin.com/uvMWD1Tw
as you can see, errors at the end about bcrypt...
i even installed some other nodes BEFORE (line 67 in previous link), trying to prevent those node-pre-gyp errors...
nodejs v8.11.4 node-red v0.19.1 npm v6.4.0
this is what i did:
curl -sL https://deb.nodesource.com/setup_8.x > nodesetup.sh
sudo bash nodesetup.sh
sudo apt-get install -y nodejs
sudo npm install -g npm node-gyp node-pre-gyp
sudo npm install -g --unsafe-perm node-red
Pete - which version of npm is in use ?
Are you trying to install a) globally ? b) using sudo ?
You shouldn't need to install serialport on it's own as well will require it in
I was installing in the home/pi/.node-red directory as the node did not appear in Node-Red despite enabling serial on the pi settings as usual and disabling serial debugging. NPM 8 – and I tried both sudo and without as user pi…. Both said error – method not allowed. I’ve never had that error before.. and I’m not new to sorting i2c and PI serialport issues.
Anyway I’m doing another install from scratch with node 6 – again on a PI2… – will report back and I’ll be a little more precise this time.
ok, - new install from scratch....using npm 6. Node-Red is working fine but node-red-node/arduino is complaining "error - cannot find module "serialport" and there is no serial in the inputs and outputs in NR.