Nodes - Debian 8 (jessie) and Debian 9 (stretch)

#1

Hi,

I see there are a lot on nodes supported on Jessie but not on Stretch, are there a patch on Stretch to make it support Jessie nodes?

#2

Lots of people write contrib nodes and then lose interest after a while and stop maintaining them.

Best thing is to try to contact the node author and see if they can make it work with current libraries and OSes

#3

Any examples ?

#4

There are quit a few the one I want to use is for PCA9685, to point one out.

#5

What is the full name of the node you are referring to? Something like node-red-contrib-????

#6

Hi, The node is https://flows.nodered.org/node/node-red-contrib-pca9685

node-red-contrib-pca9685

Thanks

#7

So what kind of error are you getting using that node?

#8

Hi,

You have to load I2C first and then the PCA9695.

I have confirmed that the I2C is loaded.

2019-05-09T12:12:45.063Z [err] ERR! i2c-bus@1.1.2 install: node-gyp rebuild

#9

2019-05-14T12:36:46.495Z Install : node-red-contrib-pca9685 0.1.3

2019-05-14T12:36:52.211Z npm install --no-audit --no-update-notifier --save --save-prefix="~" --production node-red-contrib-pca9685@0.1.3
2019-05-14T12:37:13.078Z [err] npm
2019-05-14T12:37:13.079Z [err] ERR! path /home/pi/.node-red/node_modules/node-red-contrib-uibuilder
2019-05-14T12:37:13.079Z [err] npm ERR! code
2019-05-14T12:37:13.080Z [err] EISGIT
2019-05-14T12:37:13.085Z [err] npm
2019-05-14T12:37:13.086Z [err] ERR! git /home/pi/.node-red/node_modules/node-red-contrib-uibuilder: Appears to be a git repo or submodule.
2019-05-14T12:37:13.086Z [err] npm ERR! git /home/pi/.node-red/node_modules/node-red-contrib-uibuilder
2019-05-14T12:37:13.087Z [err] npm
2019-05-14T12:37:13.087Z [err] ERR! git Refusing to remove it. Update manually,
2019-05-14T12:37:13.088Z [err] npm ERR! git
2019-05-14T12:37:13.088Z [err] or move it out of the way first.
2019-05-14T12:37:14.447Z [err]
2019-05-14T12:37:14.452Z [err] npm ERR! A complete log of this run can be found in:
2019-05-14T12:37:14.452Z [err] npm ERR! /home/pi/.npm/_logs/2019-05-14T12_37_13_098Z-debug.log
2019-05-14T12:37:14.473Z rc=1

#10

This is via the node-red manage palate

#11

Did you add user ‘pi’ to the i2c group?

Unfortunately that node hasn’t been updated in 2 years and it doesn’t look like you can raise issues on it. You could try contacting the author of the node

#12

I suspect it's more a node version issue that Jessie vs Stretch. Which version of nodejs are you using ? (they removed quite a few of the previously deprecated things from v8 when they went to v10).

#13

Ahhh drats, that is normally one of my first questions.

#14

You appear to have used git clone to fetch uibuilder. npm does not like having a .git folder in node directories. Remove or rename home/pi/.node-red/node_modules/node-red-contrib-uibuilder/.git

1 Like