zwave-js / node-red-contrib-zwave-js

The most powerful, high performing and highly polished Z-Wave node for Node-RED based on Z-Wave JS. If you want a fully featured Z-Wave framework in your Node-RED instance, you have found it.
MIT License
47 stars 6 forks source link

Can't install in Home Assistant #17

Closed nappyjim closed 3 years ago

nappyjim commented 3 years ago

I am using node red on home assistant. When i first went to install it, i had errors because it couldent find make. With help, I got make on there. Now here my error logs when trying to install this.

image image

hufftheweevil commented 3 years ago

I ran into the same problem. You probably need to install serialport directly first. Try npm i serialport@latest

marcus-j-davies commented 3 years ago

Sadly, I'm not that experienced with HA. As mention by @hufftheweevil try and install serialport directly.

sudo npm install serialport@9.0.6 --unsafe-perm --build-from-source

nappyjim commented 3 years ago

@hufftheweevil how do I get into a command prompt in node-red (launched through home assistant)?? I dont see where/how i would enter 'npm i serialport@latest'

Or am I accessing my home assistant device through putty and typing it in there?

marcus-j-davies commented 3 years ago

You can do this via the terminal that putty creates.

npm install serialport@latest

marcus-j-davies commented 3 years ago

After that I would try and install the node-red plugin via the pallet menu. normally all this happens automatically, so not sure why HA stops it - again I'm not an expert in HA

nappyjim commented 3 years ago

Hmmm, doesnt work. I know last time I tried command line on my device, I was limited.

Im running HA on their HA "blue" device which is an ODroid N2

image

nappyjim commented 3 years ago

Got it installed by putting in these system_packages in my node red add-on configuration in HA.

image