homebridge-harmonyhub
homebridge-harmonyhub copied to clipboard
Install fails
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.
Have you been able to figure this out?
yes, for me this worked:
sudo apt-get update sudo apt-get upgrade
Fails here too. No amount of updating fixed it.
@JonSilver have you gotten anywhere with this issue? I really wish we had some support. I still appreciate them creating it though.
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.