CoolKit-Technologies / ha-addon

Apache License 2.0
253 stars 117 forks source link

Unable to install addon in HA #106

Closed sherkborg closed 1 year ago

sherkborg commented 1 year ago

When clicking 'Install' as an addon (after it's repo has been added)

I get: The command '/bin/sh -c npm install --production --save-exact' returned a non-zero code: 1

Using Home Assistant Core: 2022.10.4

Tried with an older core, same issue. (2022.8.7)

Tried clicking install 20x times to ensure there is a failure.

From HA Logs: 022-10-18 21:31:23.823 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /addons/f4f71350_ewelink_smart_home_slug/install - The command '/bin/sh -c npm install --production --save-exact' returned a non-zero code: 1 2022-10-18 21:33:21.927 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /addons/f4f71350_ewelink_smart_home_slug/install - The command '/bin/sh -c npm install --production --save-exact' returned a non-zero code: 1 2022-10-18 21:34:26.556 ERROR (MainThread) [homeassistant.components.hassio] Failed to to call /addons/f4f71350_ewelink_smart_home_slug/install - The command '/bin/sh -c npm install --production --save-exact' returned a non-zero code: 1

niezw commented 1 year ago

This log seems to be in the installation of the npm base library failed, which is likely to be a network problem, it is recommended to try more, and also recommended to try to use a network proxy.

If you still have problems, you can reopen this issues. We will be happy to help you solve your problem!