harmony-api
harmony-api copied to clipboard
Failure when installing
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 [email protected]: use @xmpp/xml package <https://www.npmjs.com/package/@xmpp/xml>
npm WARN deprecated [email protected]: this package is deprecated please use https://www.npmjs.com/package/@xmpp/client
npm WARN deprecated [email protected]: 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 [email protected]: this package is deprecated please use https://github.com/xmppjs/xmpp.js
npm WARN deprecated [email protected]: 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 $
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