GusMuche / homebridge-zipabox-platform

Homebridge plugin to Link HomeKit and the Zipabox through API request. Implementation in dynamic platform.
MIT License
5 stars 2 forks source link

Amend node-fetch version #38

Closed bwp91 closed 3 years ago

bwp91 commented 3 years ago

The version of node-fetch as instructed currently in the package.json is >=2.6.0 which for new installations is using v3 of node-fetch.

v3 of node fetch is an ESM module which is currently incompatible with Homebridge. See

https://www.reddit.com/r/homebridge/comments/q7z3tc/i_want_to_move_my_hoobs_to_homebridgevm/

Using ^2.6.0 as the version instead will continue to install v2 of node-fetch which is what is needed for the plugin to work.

Until this is changed and a new version of the plugin is published, anyone installing or updating the plugin will receive this error.

GusMuche commented 3 years ago

I merge the branch before test and update the package. This will be done this evening.

Thanks for the commit !

Gus