homebridge-harmonyhub icon indicating copy to clipboard operation
homebridge-harmonyhub copied to clipboard

Install fails

Open noaboa97 opened this issue 7 years ago • 5 comments

Hello,

So i tried to install homebridge-harmonyhub plugin but it fails...

And I have no idea why. I installed homebridge and also ps4-waker. Can anyone help me?

I tried it with:

pi@raspberrypi:~ $ sudo su root@raspberrypi:/home/pi# npm i -g homebridge-harmonyhub

and also with

pi@raspberrypi:~ $ sudo npm i -g homebridge-harmonyhub npm WARN deprecated [email protected]: use @xmpp/xml package <https://www.npmjs.com/pa ckage/@xmpp/xml> npm ERR! code 128 npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b cdata-for-ltx-parser https://gi thub.com/swissmanu/ltx.git /root/.npm/_cacache/tmp/git-clone-e79d7b22 npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone- e79d7b22': Permission denied npm ERR!

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2017-07-27T15_32_49_247Z-debug.log

But i always get the same error.

noaboa97 avatar Jul 27 '17 15:07 noaboa97

Have you been able to figure this out?

sdorilas avatar Aug 03 '17 14:08 sdorilas

yes, for me this worked:

sudo apt-get update sudo apt-get upgrade

noaboa97 avatar Aug 08 '17 19:08 noaboa97

Fails here too. No amount of updating fixed it.

JonSilver avatar Aug 11 '17 12:08 JonSilver

@JonSilver have you gotten anywhere with this issue? I really wish we had some support. I still appreciate them creating it though.

sdorilas avatar Sep 25 '17 03:09 sdorilas

Running into the same issue here. Running the command (git clone...) manually succeeds, which means that somehow when it is run as part of npm it must not run as root ??? Tried with both sudo and sudo su -. same result.

Then I tried @noaboa97's suggestion, but like this: sudo apt-get update sudo apt-get upgrade --fix-missing

Running this on a Raspberry Pi BTW, but still cannot install this plugin

Update: found another article that had a solution that worked for me: https://github.com/KraigM/homebridge-harmonyhub/issues/97 I downgraded npm to get it to work.

pelaxa avatar Dec 25 '17 19:12 pelaxa