Hexagon / node-telldus

Node bindings for telldus-core
Other
34 stars 10 forks source link

Problem to Install on Raspberry Buster, Node 14.18 and node-gyp 5.1 #80

Open torevalley opened 2 years ago

torevalley commented 2 years ago

Hi, Tried all kinds of things, but no luck getting node for Telldus installed, goal is to user Telldus with NodeRed. Complete log attached.. I'm somewhat of a noob in this so if this is simply wrong please discard this issue.

ERR! cwd /home/pi/.node-red/node_modules/telldus gyp ERR! node -v v14.18.0 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! telldus@1.1.2 install: node-gyp configure build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the telldus@1.1.2 install script. npm ERR! This is probably not a problem with npm. There is likely additional logging output abov 2021-10-05T05_45_00_581Z-debug.log e.

Hexagon commented 2 years ago

Hi!

Long time since i tried building this now, but first things first, have you installed the telldus packages in Raspbian?

See

https://github.com/Hexagon/node-telldus#from-npm

and

https://developer.telldus.com/wiki/TellStickInstallationUbuntu

which will tell you to install these packages

libtelldus-core-dev telldus-core

After that you will need node-gyp

npm install node-gyp -g

Then you'll be ready for node-red

torevalley commented 2 years ago

Yes I have done all the steps, and telldus core is up and running.. telldus_core If I understand it correctly it us the node-gyp version and node-telldus npm packages that are not on versions that can cooperate... But as said I'm a noob in deep waters on this :) trying the nodered contrib package tries to install node-telldus as it is depending on that, and again as I understand it that is where i fails. So i tried node-telldus separate and still fails...

torevalley commented 2 years ago

Amazing how simple things can be if someone else does the research and give you a simple command to use. In this case my brother... npm install https://github.com/Hexagon/node-telldus and if I understand it correctly this will install the node-telldus from source retrieved from "right here". Anyway it works like a charm, thanks to my brother. And after node-telldus installed the nodered-contrib worked fine as well. My problem solved.