Foddy / node-red-contrib-huemagic

Philips Hue node to control bridges, lights, groups, motion sensors, temperature sensors and Lux sensors using Node-RED.
https://flows.nodered.org/node/node-red-contrib-huemagic
Apache License 2.0
200 stars 67 forks source link

Can´t install huemagic #348

Closed max-stockhausen closed 2 years ago

max-stockhausen commented 2 years ago

Describe the bug I try to install huemagic but it gives an error "Cannot read property 'nodes' of null "

Flow to Reproduce `2022-03-21T21:02:00.828Z installieren : node-red-contrib-huemagic 4.2.1

2022-03-21T21:02:00.283Z npm install --no-package-lock --global-style --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production node-red-contrib-huemagic@4.2.1 2022-03-21T21:02:07.971Z [out] 2022-03-21T21:02:07.971Z [out] up to date in 7s 2022-03-21T21:02:07.997Z rc=0`

Expected behavior I expect huemagic to install without error

Screenshots grafik

Please complete the following information:

Jai-Gogineni commented 2 years ago

I am facing same issue `----------------------------------------------------------- 2022-03-21T21:47:14.824Z Install : node-red-contrib-huemagic 4.2.1

2022-03-21T21:47:15.085Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-contrib-huemagic@4.2.1 2022-03-21T21:48:01.356Z [err] npm 2022-03-21T21:48:01.356Z [err] WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself. 2022-03-21T21:48:01.398Z [err] npm WARN 2022-03-21T21:48:01.398Z [err] optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman-converters/node_modules/fsevents): 2022-03-21T21:48:01.398Z [err] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) 2022-03-21T21:48:01.442Z [err] npm WARN 2022-03-21T21:48:01.442Z [err] optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman-converters/node_modules/zigbee-herdsman/node_modules/fsevents): 2022-03-21T21:48:01.442Z [err] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) 2022-03-21T21:48:01.484Z [err] npm 2022-03-21T21:48:01.485Z [err] WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/zigbee-herdsman/node_modules/fsevents): 2022-03-21T21:48:01.485Z [err] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) 2022-03-21T21:48:01.486Z [err] 2022-03-21T21:48:01.489Z [out] + node-red-contrib-huemagic@4.2.1 2022-03-21T21:48:01.489Z [out] updated 1 package in 44.471s 2022-03-21T21:48:01.541Z rc=0`

2.0.6: Maintenance Release

ptweety commented 2 years ago

Hi @max-stockhausen: HueMagic requires

  "node-red": {
    "version": ">=2.1.0",
  },
  "engines": {
    "node": ">=12.0.0"
  },

Hence, your node-red version is outdated.

max-stockhausen commented 2 years ago

That was the issue... Easy fix :) Thank you for pointing that out!