mfkrause / homebridge-people-pro

Homebridge plugin that provides details of who is in a Home + History (powered by fakegato)
MIT License
41 stars 2 forks source link

v0.11.5 requires git to be installed #17

Closed jealousofyou closed 3 years ago

jealousofyou commented 3 years ago

While updating from v0.11.4 to v0.11.5, I got an error when homebridge was running sudo -E -n npm install -g homebridge-people-pro@latest via the plugin's "UPDATE" button in the UI. The npm log file showed this:

162 verbose Linux 5.4.83-v7+
163 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "-g" "homebridge-people-pro@latest"
164 verbose node v14.16.1
165 verbose npm  v6.14.12
166 error code ENOENT
167 error syscall spawn git
168 error path git
169 error errno -2
170 error enoent Error while executing:
170 error enoent undefined ls-remote -h -t ssh://git@github.com/mfkrause/local-devices.git
170 error enoent
170 error enoent
170 error enoent spawn git ENOENT
171 error enoent This is related to npm not being able to find a file.

My system:

Some quick googling indicated that the error was caused by git not being present on my system. After running sudo apt install git I could successfully install the homebridge-people-pro plugin.

mfkrause commented 3 years ago

Sorry, unthoughtful update of mine. This should be fixed with v0.11.6. Thanks for the report!