blechdom / node-red-contrib-dmxusbpro

2 stars 9 forks source link

Install Problems #3

Open Zappogb1 opened 4 years ago

Zappogb1 commented 4 years ago

I have set up a raspberry Pi for use with lightcontrol via node-red. during installation of this node an error occoured and the installation stoped. one solution is to downgrade the nodejs version from 12.X to 10.20.1. After the downgrade the installation of this node was successfully and my node-red flow was working correctly.

danieldean1 commented 3 years ago

Following up on this - same issue here with this node install. Comment from Colin here: https://discourse.nodered.org/t/install-problem-node-red-contrib-dmxusbpro/25348

states "The node requires an old version of the serialport module (6.2.2) which will not build on your system (nor on mine). My guess is that is too old for version 12 of nodejs. You could try reverting to nodejs 10 or 8, and if it works then raise an issue against the node. It is possible that it just needs its package.json hacked to allow it use the latest version of the serialport module."

Has anyone hacked your package.json to try this? I'm a noob bvut since serial is so level it seems like this should work.

Also, any possibility of an update to the node to address this issue?

GaneshBaronAloir commented 3 years ago

Hello! I'm reviving this thread with a solution that worked for me on Ubuntu 18.04 with NodeJS v15.14.

Clone the repo In the file "package.json" replace the following lines

"dependencies"  : {
        "serialport"   : "^6.2.0"
    },

for the following (I use serialport version 7.7.6. Change it to whatever version your using)

"dependencies"  : {
        "serialport"   : "^7.7.6"
    },

Build locally with

npm install ~/path/to/repo/node-red-contrib-dmxusbpro

Voilà!

bucovaina commented 1 year ago

@GaneshBaronAloir : to second you: I just tried this with SerialPort 10.5.0 and it still works!

GaneshBaronAloir commented 1 year ago

@bucovaina Happy I could help! :)