Alles anzeigenIch habs mir damals notiert, wie ich es dann zum Laufen bekommen habe, und die Notizen sagen:
sudo -i
export NPM_CONFIG_PREFIX=/usr/local/
npm install -g --unsafe-perm https://github.com/hallos/homebridge-cmdtrigger
Damit hat es dann geklappt.
Stefan
Auch als user root mag er immer noch nicht....
pi@raspberrypi:~ $ sudo -i
root@raspberrypi:~# export NPM_CONFIG_PREFIX=/usr/local/
root@raspberrypi:~# npm install -g --unsafe-perm https://github.com/hallos/homebridge-cmdtrigger
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t https://github.com/hallos/homebridge-cmdtrigger.git
npm ERR!
npm ERR! fatal: failed to stat '.': Permission denied
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-06-08T07_47_53_967Z-debug.log