codmpm / node-red-contrib-loxone

Connect the Loxone Miniserver to node-red via the Websocket API
MIT License
74 stars 24 forks source link

Cant install on Cerbo GX #75

Closed patrick-dmxc closed 1 year ago

patrick-dmxc commented 1 year ago

Hi, the installation not succed on a CerboGX

2022-09-23T13:05:43.867Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-loxone@0.10.12 2022-09-23T13:05:52.111Z [err] npm 2022-09-23T13:05:52.114Z [err]
2022-09-23T13:05:52.115Z [err] ERR! code ENOENT 2022-09-23T13:05:52.116Z [err] npm 2022-09-23T13:05:52.118Z [err] ERR! syscall spawn git 2022-09-23T13:05:52.119Z [err] npm ERR! path git 2022-09-23T13:05:52.120Z [err] npm 2022-09-23T13:05:52.122Z [err] ERR! errno -2 2022-09-23T13:05:52.171Z [err] npm 2022-09-23T13:05:52.173Z [err]
2022-09-23T13:05:52.173Z [err] ERR! enoent Error while executing: 2022-09-23T13:05:52.173Z [err] npm ERR! enoent undefined ls-remote -h -t ssh://git@github.com/codm/node-lox-ws-api.git 2022-09-23T13:05:52.173Z [err] npm ERR! 2022-09-23T13:05:52.175Z [err] enoent 2022-09-23T13:05:52.175Z [err] npm ERR! enoent 2022-09-23T13:05:52.175Z [err] npm ERR! 2022-09-23T13:05:52.176Z [err] enoent spawn git ENOENT 2022-09-23T13:05:52.176Z [err] npm ERR! enoent This is related to npm not being able to find a file. 2022-09-23T13:05:52.176Z [err] npm 2022-09-23T13:05:52.177Z [err] ERR! enoent 2022-09-23T13:05:52.213Z [err] 2022-09-23T13:05:52.214Z [err] npm 2022-09-23T13:05:52.215Z [err] ERR! A complete log of this run can be found in: 2022-09-23T13:05:52.215Z [err] npm ERR! 2022-09-23T13:05:52.216Z [err] /data/home/nodered/.npm/_logs/2022-09-23T13_05_52_186Z-debug.log 2022-09-23T13:05:52.238Z rc=254

maybe this is the solution https://stackoverflow.com/questions/53247394/npm-install-web3-install-fails-undefined-ls-remote

codmpm commented 1 year ago

Yes, you need git installed, as stated in the very first sentence of this repository ;-)

As of verison 0.10.4 please make sure, that your system has the git command installed, as the needed library are currently pulled from github. Otherwise you will get an undefined ls-remote-Error.