Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mrmaximas opened this issue Nov 17, 2024 · 5 comments
Open

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

mrmaximas opened this issue Nov 17, 2024 · 5 comments
Assignees
Labels
question Further information is requested

Comments

@mrmaximas
Copy link

mrmaximas commented Nov 17, 2024

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
@mrmaximas mrmaximas added the question Further information is requested label Nov 17, 2024
@Shaquu
Copy link
Member

Shaquu commented Nov 17, 2024

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

@GogoVega
Copy link
Contributor

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
Copy link
Author

@GogoVega how to update hap-nodejs ??

@GogoVega
Copy link
Contributor

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
Copy link
Author

mrmaximas commented Nov 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants