KraigM / homebridge-harmonyhub

HomeBridge Plugin for Logitech Harmony Hub
181 stars 52 forks source link

Can't install #132

Closed wroblewski6 closed 6 years ago

wroblewski6 commented 6 years ago

I try to install by npm install -g homebridge-harmonyhub

also tried sudo npm install -g homebridge-harmonyhub

but all time I get this error

pi@raspberrypi:~ $ npm install -g homebridge-harmonyhub 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-jid@2.3.0: use @xmpp/jid package https://www.npmjs.com/package/@xmpp/jid npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ENODATA: Cache input stream was empty npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation. npm ERR! code EINTEGRITY npm ERR! errno EINTEGRITY npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/form-data: Integrity verification failed for sha512-h08WZrojv5a6hAQ+NqFaMXGNnQ7HiLyURv1+CqGr4JdJhFFBpuImVbtmiIkQ/pJEFa5/bmn4vwX9qDK07zhPCg== (/home/pi/.npm/_cacache/content-v2/sha512/87/4f/1666ba23bf96ba84043e36a15a31718d9d0ec788bc9446fd7e0aa1abe09749845141a6e22655bb66888910fe924415ae7f6e69f8bf05fda832b4ef384f0a)

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-04-09T14_54_30_775Z-debug.log pi@raspberrypi:~ $ npm install -g homebridge-harmonyhub 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-jid@2.3.0: use @xmpp/jid package https://www.npmjs.com/package/@xmpp/jid npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ENODATA: Cache input stream was empty npm WARN registry Using stale package data from https://registry.npmjs.org/ due to a request error during revalidation. npm ERR! code EINTEGRITY npm ERR! errno EINTEGRITY npm ERR! Invalid response body while trying to fetch https://registry.npmjs.org/form-data: Integrity verification failed for sha512-h08WZrojv5a6hAQ+NqFaMXGNnQ7HiLyURv1+CqGr4JdJhFFBpuImVbtmiIkQ/pJEFa5/bmn4vwX9qDK07zhPCg== (/home/pi/.npm/_cacache/content-v2/sha512/87/4f/1666ba23bf96ba84043e36a15a31718d9d0ec788bc9446fd7e0aa1abe09749845141a6e22655bb66888910fe924415ae7f6e69f8bf05fda832b4ef384f0a)

npm ERR! A complete log of this run can be found in: npm ERR! /home/pi/.npm/_logs/2018-04-09T14_55_33_286Z-debug.log pi@raspberrypi:~ $ sudo npm install -g homebridge-harmonyhub npm ERR! code 128 npm ERR! Command failed: /usr/bin/git clone -q git://github.com/e7hz3r0/harmonyhubjs-client.git /root/.npm/_cacache/tmp/git-clone-573f338d npm ERR! fatal: could not create leading directories of '/root/.npm/_cacache/tmp/git-clone-573f338d': Permission denied npm ERR!

npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2018-04-09T14_56_36_540Z-debug.log

wroblewski6 commented 6 years ago

rm ./package-lock.json rm -r ./node_modules npm cache clear --force That is the way i resolved this problem