mabunixda / node-red-contrib-fronius-solar

MIT License
9 stars 2 forks source link

Stumbled across dependency from git #27

Closed FNW2022 closed 2 years ago

FNW2022 commented 2 years ago

Maybe it's because I was just a bit stupid when setting up a new Raspberry Pi 3B+ from scratch for my smart home enviroment, but while trying to install your module, I just hit an error due to git not being installed on the box, yet:

2022-06-27T16:41:49.456Z Install : node-red-contrib-fronius-solar 1.0.3

2022-06-27T16:41:49.555Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-fronius-solar@1.0.3
2022-06-27T16:42:04.092Z [err] npm 
2022-06-27T16:42:04.093Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
2022-06-27T16:42:04.093Z [err] npm 
2022-06-27T16:42:04.093Z [err] WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
2022-06-27T16:42:04.095Z [err] 
2022-06-27T16:42:04.171Z [err] npm ERR!
2022-06-27T16:42:04.171Z [err]  code ENOENT
2022-06-27T16:42:04.171Z [err] **npm ERR! syscall spawn git**
2022-06-27T16:42:04.171Z [err] npm
2022-06-27T16:42:04.172Z [err]  **ERR! path git**
2022-06-27T16:42:04.172Z [err] npm 
2022-06-27T16:42:04.173Z [err] ERR! errno -2
2022-06-27T16:42:04.200Z [err] npm ERR!
2022-06-27T16:42:04.200Z [err]  enoent Error while executing:
2022-06-27T16:42:04.200Z [err] npm ERR! enoent undefined ls-remote -h -t https://github.com/mwittig/node-http-digest-client.git
2022-06-27T16:42:04.200Z [err] npm 
2022-06-27T16:42:04.201Z [err] ERR! enoent 
2022-06-27T16:42:04.201Z [err] npm ERR!
2022-06-27T16:42:04.201Z [err]  enoent 
2022-06-27T16:42:04.201Z [err] npm ERR!
2022-06-27T16:42:04.201Z [err]  enoent spawn git ENOENT
2022-06-27T16:42:04.201Z [err] npm ERR! enoent This is related to npm not being able to find a file.
2022-06-27T16:42:04.201Z [err] npm ERR! enoent
2022-06-27T16:42:04.202Z [err]  
2022-06-27T16:42:04.244Z [err] 
2022-06-27T16:42:04.245Z [err] npm ERR! A complete log of this run can be found in:
2022-06-27T16:42:04.245Z [err] npm ERR!     /home/pi/.npm/_logs/2022-06-27T16_42_04_210Z-debug.log

As all my other Node-RED nodes could be re-installed from scratch without git being installed, I guess it might be a good idea to point newbies to this dependency in the Readme - just to avoid confusion...

Thanks for your great work!

Best regards,

Andreas

mabunixda commented 2 years ago

Thanks mate! The dependency is child of the node module for fronius :(