# Which version of Node.js should I use for (Homey Pro) App development on macOS?

**URL:** <https://community.homey.app/t/which-version-of-node-js-should-i-use-for-homey-pro-app-development-on-macos/72220>\
**Category:** Developers\
**Tags:** app, homey-pro\
**Created:** [November 15, 2022, 9:55pm UTC](https://community.homey.app/t/which-version-of-node-js-should-i-use-for-homey-pro-app-development-on-macos/72220 "2022-11-15T21:55:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)\
**Post date:** [November 15, 2022, 9:55pm UTC](https://community.homey.app/t/which-version-of-node-js-should-i-use-for-homey-pro-app-development-on-macos/72220/1 "2022-11-15T21:55:55Z")

</div>

In the past I helped the author of the SolarPanels App by creating a driver for Growatt inverters. This driver no longer seems to be able to log in to the Growatt servers. I want to investigate this issue, but `homey app run` fails, because this command fails:

```auto
command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

```

Maybe the version of Node.js that I use on my Mac (v19.0.1) is too new and not supported yet?

I think Homey Pro Apps stil use Node 12, but Homebrew refuses to install that because it is no longer supported…

What version of Node.js do other developers use on macOS?

---

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [November 16, 2022, 6:16am UTC](https://community.homey.app/t/which-version-of-node-js-should-i-use-for-homey-pro-app-development-on-macos/72220/2 "2022-11-16T06:16:44Z")

</div>

> [@prosumer](#):
>
> What version of Node.js do other developers use on macOS?

That’s not really relevant here (I use v19 myself), what’s more important is that it’s trying to build a C++ addon that won’t run on Homey anyway (and is also not required). If it’s possible to remove the requirement on `serialport` in the app, that would be the best; otherwise, it would be useful if you posted the error log (it’s likely missing an external dependency, like Python or a C++ compiler).

FWIW, Homey _apps_ run on Node.js v16 and Homey’s core runs on v12 (I guess Athom couldn’t get their own code to run on v16…).

---

<div class="post-metadata">

**Author:** ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)\
**Post date:** [November 16, 2022, 9:30am UTC](https://community.homey.app/t/which-version-of-node-js-should-i-use-for-homey-pro-app-development-on-macos/72220/3 "2022-11-16T09:30:47Z")

</div>

It’s not my App (so I’m not familiar with all aspects), but it looks like the [Huawei driver](https://github.com/DiedB/Homey-SolarPanels/blob/master/drivers/huawei/api.js) is using [modbus-serial](https://www.npmjs.com/package/modbus-serial).

Since I want to debug the Growatt driver, I’ll try just disabling the Huawei driver and removing that dependency at my next attempt (tonight?).

---

<div class="post-metadata">

**Author:** ![prosumer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/prosumer/32/166478_2.png) [@prosumer](https://community.homey.app/u/prosumer)\
**Post date:** [November 17, 2022, 12:52pm UTC](https://community.homey.app/t/which-version-of-node-js-should-i-use-for-homey-pro-app-development-on-macos/72220/4 "2022-11-17T12:52:18Z")

</div>

> [@prosumer](#):
>
> I’ll try just disabling the Huawei driver and removing that dependency at my next attempt (tonight?)

That worked! App installed without any issues…
