martin-doyle / node-red-contrib-aedes

MQTT broker for Node-RED based on Aedes
MIT License
62 stars 11 forks source link

Node-Red Installer/Example problem #74

Open tjshippy opened 10 months ago

tjshippy commented 10 months ago

I had this library running on my Node-Red server, I was using the example provided here: https://github.com/martin-doyle/node-red-contrib-aedes/blob/master/examples/aedes_simple.json then after trying to change the default port back to 1883 - after a deploy, it said the Aedes Broker node not found.

I rebooted my system and eventually tried to reinstall the library and now I am getting the error below in the install log. Based on the scorecard, this should run on Nodejs v12.0.0 or greater. Did something change today? WTH?:

2023-11-28T16:42:27.497Z Install : node-red-contrib-aedes 0.11.1

2023-11-28T11:42:25.203Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-aedes@0.11.1 2023-11-28T11:43:03.634Z [err] npm 2023-11-28T11:43:03.638Z [err]
2023-11-28T11:43:03.640Z [err] ERR! 2023-11-28T11:43:03.641Z [err]
2023-11-28T11:43:03.646Z [err] code ENOTSUP 2023-11-28T11:43:03.734Z [err] npm 2023-11-28T11:43:03.735Z [err]
2023-11-28T11:43:03.737Z [err] ERR! 2023-11-28T11:43:03.738Z [err]
2023-11-28T11:43:03.740Z [err] notsup 2023-11-28T11:43:03.743Z [err] Unsupported engine for aedes@0.49.0: wanted: {"node":">=14"} (current: {"node":"12.21.0","npm":"6.14.11"}) 2023-11-28T11:43:03.746Z [err] npm ERR! 2023-11-28T11:43:03.749Z [err] notsup Not compatible with your version of node/npm: aedes@0.49.0 2023-11-28T11:43:03.753Z [err] npm ERR! 2023-11-28T11:43:03.756Z [err] notsup Not compatible with your version of node/npm: aedes@0.49.0 2023-11-28T11:43:03.756Z [err] npm 2023-11-28T11:43:03.761Z [err] ERR! notsup Required: {"node":">=14"} 2023-11-28T11:43:03.761Z [err] npm ERR! notsup Actual: {"npm":"6.14.11","node":"12.21.0"} 2023-11-28T11:43:03.796Z [err]

martin-doyle commented 10 months ago

node-red-contrib-aedes requires Nodejs12. But as you see in the logs aedes requires Nodejs14 minimum.