NRCHKB / node-red-contrib-homekit-bridged

Node-RED Contribution - HomeKit Bridged : Node-RED nodes to simulate Apple HomeKit devices.
https://nrchkb.github.io
MIT License
421 stars 52 forks source link

[Help needed]: fails to install with errors #568

Open mrmaximas opened 2 hours ago

mrmaximas commented 2 hours ago

Your Current NRCHKB Plugin Version

1.7.1

Operating System

Mac OS 15.1

How can we help?

Subj. How to fix it without downgrade node?

Any code or functions to add?

2024-11-17T15:00:55.126Z Install : node-red-contrib-homekit-bridged 1.7.1

2024-11-17T15:00:55.206Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --omit=dev --engine-strict node-red-contrib-homekit-bridged@1.7.1
2024-11-17T15:00:55.861Z [err] npm error code EBADENGINE
2024-11-17T15:00:55.861Z [err] npm error engine Unsupported engine
2024-11-17T15:00:55.861Z [err] npm error engine Not compatible with your version of node/npm: hap-nodejs@0.12.3-beta.18
2024-11-17T15:00:55.861Z [err] npm error notsup Not compatible with your version of node/npm: hap-nodejs@0.12.3-beta.18
2024-11-17T15:00:55.861Z [err] npm error notsup Required: {"node":"^18 || ^20"}
2024-11-17T15:00:55.861Z [err] npm error notsup Actual:   {"npm":"10.9.0","node":"v22.11.0"}
2024-11-17T15:00:55.862Z [err] npm error A complete log of this run can be found in: /Users/max/.npm/_logs/2024-11-17T15_00_55_334Z-debug-0.log
2024-11-17T15:00:55.865Z rc=1
Shaquu commented 2 hours ago

Seems like a bug. @GogoVega can you please have a look?

GogoVega commented 1 hour ago

Not a bug, hap-nodejs@0.12.3-beta.18 requires node v18 or v20.

If we upgrade to hap-nodejs@0.12.3, node v22 is supported.

mrmaximas commented 1 hour ago

@GogoVega how to update hap-nodejs ??

GogoVega commented 1 hour ago

It's not you who has to update but us (NRCHKB).

You can as workaround install manually with:

npm i node-red-contrib-homekit-bridged@latest --omit=dev --ignore-engines
mrmaximas commented 1 hour ago

It's not you who has to update but us (NRCHKB).

You can as workaround install manually with:

npm i node-red-contrib-homekit-bridged@latest --omit=dev --ignore-engines

thanks. I ran this command, and a folder appeared in my home directory named node_modules, I restarted node-red but NRCHKB did not appear in the palette. I think I'm running the command in the wrong place?

P.S. fixed. running command from node-red root dir aka /Users/m/.node-red in my case