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

can't install

Open sdorilas opened this issue 6 years ago • 16 comments

$ sudo npm install -g homebridge-harmonyhub npm WARN deprecated [email protected]: use @xmpp/xml package https://www.npmjs.com/package/@xmpp/xml npm ERR! exited with error code: 69

npm ERR! A complete log of this run can be found in: npm ERR! /Users/sdorilas/.npm/_logs/2017-08-02T19_34_41_920Z-debug.log

sdorilas avatar Aug 02 '17 19:08 sdorilas

sudo npm install -g homebridge-harmonyhub npm WARN deprecated [email protected]: use @xmpp/xml package https://www.npmjs.com/package/@xmpp/xml npm ERR! Error while executing: npm ERR! /usr/bin/git ls-remote -h -t https://github.com/swissmanu/ltx.git npm ERR! npm ERR! npm ERR! npm ERR! Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo. npm ERR! npm ERR! npm ERR! npm ERR! exited with error code: 69

npm ERR! A complete log of this run can be found in: npm ERR! /Users/sdorilas/.npm/_logs/2017-08-08T19_29_52_983Z-debug.log

sdorilas avatar Aug 08 '17 19:08 sdorilas

Agreeing to the Xcode/iOS license requires admin privileges, please re-run as root via sudo.

When you install it for the first time, you have to run git on the console once as root to accept the Xcode/iOS license agreement

patrickbusch avatar Aug 09 '17 07:08 patrickbusch

npm WARN deprecated [email protected]: use @xmpp/xml package https://www.npmjs.com/package/@xmpp/xml npm ERR! code 1 npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b cdata-for-ltx-parser https://github.com/swissmanu/ltx.git /Users/sdorilas/.npm/_cacache/tmp/git-clone-d0e73c34 npm ERR! /Users/sdorilas/.npm/_cacache/tmp/git-clone-d0e73c34/.git: Permission denied npm ERR!

npm ERR! A complete log of this run can be found in: npm ERR! /Users/sdorilas/.npm/_logs/2017-08-09T10_29_06_330Z-debug.log

sdorilas avatar Aug 09 '17 10:08 sdorilas

sudo npm install -g homebridge-harmonyhub npm WARN deprecated [email protected]: use @xmpp/xml package https://www.npmjs.com/package/@xmpp/xml npm ERR! code 1 npm ERR! Command failed: /usr/bin/git clone --depth=1 -q -b cdata-for-ltx-parser https://github.com/swissmanu/ltx.git /Users/sdorilas/.npm/_cacache/tmp/git-clone-c892cacb npm ERR! /Users/sdorilas/.npm/_cacache/tmp/git-clone-c892cacb/.git: Permission denied npm ERR!

npm ERR! A complete log of this run can be found in: npm ERR! /Users/sdorilas/.npm/_logs/2017-08-09T22_50_41_117Z-debug.log

sdorilas avatar Aug 09 '17 22:08 sdorilas

0 info it worked if it ends with ok 1 verbose cli [ '/usr/local/bin/node', 1 verbose cli '/usr/local/bin/npm', 1 verbose cli 'install', 1 verbose cli '-g', 1 verbose cli 'homebridge-harmonyhub' ] 2 info using [email protected] 3 info using [email protected] 4 verbose npm-session c97bc8d0726b8115 5 silly install loadCurrentTree 6 silly install readGlobalPackageData 7 http fetch GET 304 https://registry.npmjs.org/homebridge-harmonyhub 856ms (from cache) 8 silly pacote tag manifest for homebridge-harmonyhub@latest fetched in 966ms 9 silly install loadIdealTree 10 silly install cloneCurrentTreeToIdealTree 11 silly install loadShrinkwrap 12 silly install loadAllDepsIntoIdealTree 13 silly resolveWithNewModule [email protected] checking installable status 14 http fetch GET 304 https://registry.npmjs.org/debug 492ms (from cache) 15 http fetch GET 304 https://registry.npmjs.org/harmonyhubjs-discover 550ms (from cache) 16 http fetch GET 304 https://registry.npmjs.org/lodash 544ms (from cache) 17 http fetch GET 304 https://registry.npmjs.org/inherits 549ms (from cache) 18 http fetch GET 304 https://registry.npmjs.org/bluebird 572ms (from cache) 19 silly pacote range manifest for debug@^2.2.0 fetched in 607ms 20 silly resolveWithNewModule [email protected] checking installable status 21 silly pacote range manifest for harmonyhubjs-discover@^1.0.2 fetched in 612ms 22 silly resolveWithNewModule [email protected] checking installable status 23 silly pacote range manifest for bluebird@^3.3.4 fetched in 632ms 24 silly resolveWithNewModule [email protected] checking installable status 25 silly pacote range manifest for lodash@^4.6 fetched in 611ms 26 silly resolveWithNewModule [email protected] checking installable status 27 silly pacote range manifest for inherits@^2.0.1 fetched in 631ms 28 silly resolveWithNewModule [email protected] checking installable status 29 http fetch GET 304 https://registry.npmjs.org/harmonyhubjs-client 642ms (from cache) 30 http fetch GET 304 https://registry.npmjs.org/queue 637ms (from cache) 31 silly pacote range manifest for harmonyhubjs-client@^1.1.6 fetched in 662ms 32 silly resolveWithNewModule [email protected] checking installable status 33 silly pacote range manifest for queue@^3.1.0 fetched in 657ms 34 silly resolveWithNewModule [email protected] checking installable status 35 http fetch GET 304 https://registry.npmjs.org/ms 207ms (from cache) 36 silly pacote version manifest for [email protected] fetched in 259ms 37 silly resolveWithNewModule [email protected] checking installable status 38 http fetch GET 200 https://registry.npmjs.org/request 520ms (from cache) 39 silly pacote range manifest for request@^2.48.0 fetched in 535ms 40 silly resolveWithNewModule [email protected] checking installable status 41 http fetch GET 304 https://registry.npmjs.org/node-xmpp-client 644ms (from cache) 42 silly pacote version manifest for [email protected] fetched in 688ms 43 silly resolveWithNewModule [email protected] checking installable status 44 http fetch GET 304 https://registry.npmjs.org/node-xmpp-stanza 691ms (from cache) 45 http fetch GET 304 https://registry.npmjs.org/q 692ms (from cache) 46 silly pacote version manifest for [email protected] fetched in 738ms 47 warn deprecated [email protected]: use @xmpp/xml package https://www.npmjs.com/package/@xmpp/xml 48 silly resolveWithNewModule [email protected] checking installable status 49 silly pacote range manifest for q@^1.1.2 fetched in 745ms 50 silly resolveWithNewModule [email protected] checking installable status 51 silly fetchPackageMetaData error for ltx@git+https://github.com/swissmanu/ltx.git#cdata-for-ltx-parser Command failed: /usr/bin/git clone --depth=1 -q -b cdata-for-ltx-parser https://github.com/swissmanu/ltx.git /Users/sdorilas/.npm/_cacache/tmp/git-clone-c892cacb 51 silly fetchPackageMetaData /Users/sdorilas/.npm/_cacache/tmp/git-clone-c892cacb/.git: Permission denied 52 verbose stack Error: Command failed: /usr/bin/git clone --depth=1 -q -b cdata-for-ltx-parser https://github.com/swissmanu/ltx.git /Users/sdorilas/.npm/_cacache/tmp/git-clone-c892cacb 52 verbose stack /Users/sdorilas/.npm/_cacache/tmp/git-clone-c892cacb/.git: Permission denied 52 verbose stack 52 verbose stack at ChildProcess.exithandler (child_process.js:213:12) 52 verbose stack at emitTwo (events.js:87:13) 52 verbose stack at ChildProcess.emit (events.js:172:7) 52 verbose stack at maybeClose (internal/child_process.js:827:16) 52 verbose stack at Socket. (internal/child_process.js:319:11) 52 verbose stack at emitOne (events.js:77:13) 52 verbose stack at Socket.emit (events.js:169:7) 52 verbose stack at Pipe._onclose (net.js:486:12) 53 verbose cwd /Users/sdorilas 54 verbose Darwin 16.6.0 55 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "homebridge-harmonyhub" 56 verbose node v4.4.7 57 verbose npm v5.3.0 58 error code 1 59 error Command failed: /usr/bin/git clone --depth=1 -q -b cdata-for-ltx-parser https://github.com/swissmanu/ltx.git /Users/sdorilas/.npm/_cacache/tmp/git-clone-c892cacb 59 error /Users/sdorilas/.npm/_cacache/tmp/git-clone-c892cacb/.git: Permission denied 60 verbose exit [ 1, true ]

sdorilas avatar Aug 09 '17 22:08 sdorilas

Exactly the same here.

JonSilver avatar Aug 11 '17 12:08 JonSilver

Anything new @JonSilver?

sdorilas avatar Aug 17 '17 21:08 sdorilas

I've the same issue since I've updated Node JS to 8.4.0. A downgrade to Node JS 7.9.0 fixes the problem but I think this workaround shouldn't be a longterm solution.

PS: Manny thanks anyway, this is a great plugin and was working like a charm before! 🎉

iDevo avatar Sep 03 '17 16:09 iDevo

I've never been able to get it to work at all. I appreciate him creating the plugin -- just wish there was a little more support but I'm sure others will assist over time. Thanks for chiming in!

Sent from my iPhone.

On Sep 3, 2017, at 12:56 PM, iDevo [email protected] wrote:

I've the same issue since I've updated Node JS to 8.4.0. I couldn't find a solution but maybe this helps the contributors.

PS: Manny thanks anyway, this is a great plugin and was working like a charm before! 🎉

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.

sdorilas avatar Sep 04 '17 00:09 sdorilas

Oh man, I just received my Harmony Hub and went to install it, and received the same error. Homebridge was the only reason I ordered the Hub. I hope someone will be able to get the plugin install-able soon. I don't think I want to try downgrading my Node JS.

efloyd avatar Oct 23 '17 19:10 efloyd

hey @efloyd,

I tried this from a different forum, then it installed.

either way, running sudo npm install -g --unsafe-perm homebridge will upgrade you to the most recent version

sdorilas avatar Oct 23 '17 19:10 sdorilas

Thanks for the tip @sdorilas. I just updated homebridge. When I attempted to install the harmony plugin, I received some warnings, but I'm not sure if it successfully installed. So I thought I'd update my config file, but when I run homebridge, it says the harmony plugin wasn't found or registered.

efloyd avatar Oct 24 '17 00:10 efloyd

Hmm I’m not too sure. I receiving warnings too but they’re just that. I would try to install again. Pay attention to the messages/errors. Mine worked fine and picked up all my activities.

Sent from my iPhone.

On Oct 23, 2017, at 8:21 PM, efloyd [email protected] wrote:

Thanks for the tip @sdorilas. I just updated homebridge. When I attempted to install the harmony plugin, I received some warnings, but I'm not sure if it successfully installed. So I thought I'd update my config file, but when I run homebridge, it says the harmony plugin wasn't found or registered.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

sdorilas avatar Oct 24 '17 00:10 sdorilas

Here's the error that I'm getting:

pi@raspberrypi:~ $ npm i -g homebridge-harmonyhub npm WARN deprecated [email protected]: use @xmpp/xml package https://www.npmjs.com/package/@xmpp/xml npm WARN deprecated [email protected]: use @xmpp/jid package https://www.npmjs.com/package/@xmpp/jid

efloyd avatar Oct 24 '17 02:10 efloyd

Success! I was able to solve my problem. I found some instructions online for logging in as root. When I did, I found that my root password was locked, so I reset the root password and logged in successfully as root.

Then, I followed the instructions to install the homebridge-harmonyplugin, and it worked! Installed with no errors. Once I updated my config file, and started homebridge, homebridge found my activities and those activities then appeared in my Home app.

efloyd avatar Oct 25 '17 14:10 efloyd

Yay!! Glad to hear it. Enjoy those activities on your Home app.

Sent from my iPhone.

On Oct 25, 2017, at 10:15 AM, efloyd [email protected] wrote:

Success! I was able to solve my problem. I found some instructions online for logging in as root. When I did, I found that my root password was locked, so I reset the root password and logged in successfully as root.

Then, I followed the instructions to install the homebridge-harmonyplugin, and it worked! Installed with no errors. Once I updated my config file, and started homebridge, homebridge found my activities and those activities then appeared in my Home app.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

sdorilas avatar Oct 25 '17 14:10 sdorilas