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
412 stars 52 forks source link

[Help needed]: Failed to install - engine Unsupported engine #552

Closed S474N closed 2 months ago

S474N commented 2 months ago

Your Current NRCHKB Plugin Version

I want to install 1.6.1

Operating System

Debian, Docker

How can we help?

-----------------------------------------------------------
2024-05-04T17:05:28.560Z Install : node-red-contrib-homekit-bridged 1.6.1

2024-05-04T17:05:29.860Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-homekit-bridged@1.6.1
2024-05-04T17:05:30.065Z [err] npm
2024-05-04T17:05:30.066Z [err]  WARN config production Use `--omit=dev` instead.
2024-05-04T17:05:35.590Z [err] npm 
2024-05-04T17:05:35.591Z [err] ERR! code EBADENGINE
2024-05-04T17:05:35.591Z [err] npm ERR! 
2024-05-04T17:05:35.591Z [err] engine Unsupported engine
2024-05-04T17:05:35.591Z [err] npm ERR!
2024-05-04T17:05:35.591Z [err]  engine Not compatible with your version of node/npm: @homebridge/ciao@1.2.0
2024-05-04T17:05:35.591Z [err] npm 
2024-05-04T17:05:35.591Z [err] ERR! notsup Not compatible with your version of node/npm: @homebridge/ciao@1.2.0
2024-05-04T17:05:35.591Z [err] npm 
2024-05-04T17:05:35.591Z [err] ERR! notsup Required: {"node":"^18 || ^20"}
2024-05-04T17:05:35.592Z [err] npm ERR! 
2024-05-04T17:05:35.592Z [err] notsup Actual:   {"npm":"8.19.4","node":"v16.20.2"}
2024-05-04T17:05:35.593Z [err] 
2024-05-04T17:05:35.593Z [err] npm
2024-05-04T17:05:35.593Z [err]  ERR! A complete log of this run can be found in:
2024-05-04T17:05:35.593Z [err] npm ERR!     /data/.npm/_logs/2024-05-04T17_05_30_050Z-debug-0.log
2024-05-04T17:05:35.599Z rc=1

Any more details?

latest-debian version, inside is node.js v16 :(

https://hub.docker.com/r/nodered/node-red/tags

Any code or functions to add?

No response

caitken-com commented 2 months ago

You should use a specific tag for the nodered docker image to get the right version of node.js

Example nodered/node-red:latest-18

S474N commented 2 months ago

Read carefully! I wrote about Debian based image! I know about 'latest-18', but its Alpine based!

TheNON75 commented 2 months ago

You may operate with these tags (official from nodered). As not we are maintaining nodered, with this issue you may want to contact them directly on their support channels.

S474N commented 2 months ago

I know, but I reported it there too: image

I put it here also for the reason that someone was dealing with a similar problem.

S474N commented 2 months ago

OK, tested this manual and it's OK ;)

https://gist.github.com/Paraphraser/6a6628c3a873047cefa5eeda21502cf0 image