question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Node version requirements outdated? / Weird bug [doc issue?]

See original GitHub issue

Expected Behavior

Pairing with Home app Just Works™ with any Node version >4.something (as documented), or at least unsupported versions throw an error.

Current Behavior

  • Pairing with Node 8.x: Doesn’t work (“wrong” password)
  • Pairing with Node 13.x: Works fine

So, I’ve spent several hours trying to figure out why pairing didn’t work for me. The debug log kept complaining about the password, so did the Home app (iOS 13.3), with a minimal configuration / default password.

I have tried pretty much everything, changing port / username / password regularly, and even the “forget Wifi trick” (#1794) and similar stunts like Airplane Mode. But no luck. But also no error messages whatsoever, everything suggested there really is a password mismatch.

Finally I noticed that I had installed node8 instead of node “latest”. After changing to node13, the very same setup / configuration worked immediately.

This seems extremely odd to me, as I would have expected errors, one way or another, when the Node version isn’t properly supported or cryptographic functions are used “differently”.

I assume debugging this would be extremely time-consuming and somewhat pointless – but simply bumping the required Node version to 13 doesn’t make sense either. This could even be FreeBSD- and/or ARM-specific behavior. Maybe a FAQ entry?

Steps to Reproduce (for bugs)

I’ve been following this article: https://blog.zs64.net/2017/12/hooking-up-harmony-hub-and-generic-zigbee-lights-to-homekit/ Basically the steps are:

  • pkg install npm-node8 avahi-libdns
  • npm install mdns, homebridge (global, unsafe)
  • run with minimalist/default config.json

Versions

Homebridge Log / Command Output

Debug log gives:

Error while checking pincode: client did not use the same password

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
apparentordercommented, Feb 3, 2020

fwiw, that makes good sense to me 😃 I’d be happy to re-test and verify that it still works with 10.17.0 >= x < 11, if that would help.

1reaction
jvmahoncommented, Jan 28, 2020

hap-nodejs recently updated their minimum node requirement to “>=10.17.0” so I think it would make sense if homebridge used the same minimum.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JS-Debug Warning "Node (Version ) outdated. We ... - GitHub
Hello,. this is explicitly not stated as bug report since it may be system exclusive. I'll include most information anyway.
Read more >
Update Now! Node.js 8 is Not Supported from 2020.
In this article, we'll discuss how and why you should move to newer, feature-packed, still supported versions (like Node 12 – check out...
Read more >
Common errors | npm Docs
Broken npm installation; Random errors; No compatible version found ... Some strange issues can be resolved by simply running npm cache clean and...
Read more >
npm WARN old lockfile The package-lock.json file was ...
It is always an easy thing to try and switch to a slightly older or newer Node.js version if you are running into...
Read more >
Top 10 Most Common Node.js Developer Mistakes - Toptal
One common Node.js issue related to using callbacks is calling them more than once. Typically, a function provided by a package to do...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found