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

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?

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

Any examples ?

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

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

Hi, The node is node-red-contrib-pca9685 (node) - Node-RED

node-red-contrib-pca9685

Thanks

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

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

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

This is via the node-red manage palate

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

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

1 Like

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

1 Like

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

2 Likes