maddox / harmony-api

🗼 A simple server allowing you to query/control multiple local Harmony Home Hubs over HTTP or MQTT
MIT License
393 stars 115 forks source link

Failure when installing #107

Open ghost opened 5 years ago

ghost commented 5 years ago

So I have NPM, I run the script/bootstrap script which appeared to work fine.

But then I had this show up in my terminal (This is on a rPi)

pi@domoticz:~/harmony-api $ sudo script/bootstrap
npm WARN deprecated node-xmpp-stanza@1.1.0: use @xmpp/xml package <https://www.npmjs.com/package/@xmpp/xml>
npm WARN deprecated node-xmpp-client@3.0.0: this package is deprecated please use https://www.npmjs.com/package/@xmpp/client
npm WARN deprecated istanbul@0.4.5: This module is no longer maintained, try this instead:
npm WARN deprecated   npm i nyc
npm WARN deprecated Visit https://istanbul.js.org/integrations for other alternatives.
npm WARN deprecated node-xmpp-core@4.2.0: this package is deprecated please use https://github.com/xmppjs/xmpp.js
npm WARN deprecated node-xmpp-jid@2.3.0: use @xmpp/jid package <https://www.npmjs.com/package/@xmpp/jid>
npm ERR! code 128
npm ERR! Command failed: git clone --depth=1 -q -b cdata-for-ltx-parser https://github.com/swissmanu/ltx.git /root/.npm/_cacache/tmp/git-clone-9a330a76
npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-9a330a76': Permission denied
npm ERR! 

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-06-19T18_51_17_875Z-debug.log
pi@domoticz:~/harmony-api $ 
skarotech commented 4 years ago

not sure if this works on a raspberry pi, but I had the same issue on a debian 10 install.

run the following command before script/bootstrap

sudo - s