node-telldus icon indicating copy to clipboard operation
node-telldus copied to clipboard

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

Open torevalley opened this issue 3 years ago • 3 comments

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! [email protected] install: node-gyp configure build npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] 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.

torevalley avatar Oct 05 '21 10:10 torevalley

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

Hexagon avatar Oct 05 '21 21:10 Hexagon

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 avatar Oct 07 '21 16:10 torevalley

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.

torevalley avatar Oct 12 '21 20:10 torevalley