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.

Error installing Homebridge on macOS

See original GitHub issue

Describe The Bug: I just runned the second command in macOS installation guide.

To Reproduce: Run the first and then the second command in macOS installation guide.

Logs:

sudo hb-service install
/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/axios/lib/cancel/Cancel.js:13
Cancel.prototype.toString = function toString() {
                          ^

TypeError: Cannot assign to read only property 'toString' of object '#<Cancel>'
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/axios/lib/cancel/Cancel.js:13:27)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)
    at Module.load (internal/modules/cjs/loader.js:1000:32)
    at Function.Module._load (internal/modules/cjs/loader.js:899:14)
    at Module.require (internal/modules/cjs/loader.js:1040:19)
    at require (internal/modules/cjs/helpers.js:72:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/axios/lib/axios.js:40:16)
    at Module._compile (internal/modules/cjs/loader.js:1151:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1171:10)

Homebridge Config:

not present

Environment:

  • Node.js Version: v13.8.0
  • NPM Version: 6.14.9
  • Homebridge Version: 1.1.6
  • Operating System: macOS 11.0.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
oznucommented, Nov 26, 2020

This seems to be caused by an outage or issue elsewhere on the internet / npm registry - whatever it was seems to have been resolved now.

For those impacted please run the following commands to repair your installation:

macOS:

npm cache clean --force
sudo npm uninstall -g homebridge-config-ui-x
sudo npm install -g --unsafe-perm homebridge-config-ui-x@latest
sudo hb-service rebuild

Linux:

sudo npm cache clean --force
sudo npm uninstall -g homebridge-config-ui-x
sudo npm install -g --unsafe-perm homebridge-config-ui-x@latest

Windows:

npm cache clean --force
npm uninstall -g homebridge-config-ui-x
npm install -g --unsafe-perm homebridge-config-ui-x@latest
2reactions
cullensanderson1commented, Nov 25, 2020

Hello, I just experneced the same issue. I’m new to HomeBridge so thought I did something wrong. I tried uninstalling and re-installing on root and that did not work either
Node.js version v14.15.0 NPM Version 6.14.8 MacOS version 11.0.1

Read more comments on GitHub >

github_iconTop Results From Across the Web

[HELP] Cannot install Homebridge on Mac - Reddit
In an attempt to update my configuration I lost the ability to re-install Homebridge, no I get this error... Any hints will be...
Read more >
homebridge-config-ui-x - npm
A web based management, configuration and control platform for Homebridge. Latest version: 4.50.2, last published: a month ago.
Read more >
Homebridge
The Homebridge UI provides an easy to use interface to manage your Homebridge plugins, configuration and accessories. Install and configure Homebridge plugins ...
Read more >
How to Install Homebridge in macOS - iPhone Wired
How to Install Homebridge in macOS · 1. Download & Install Node · 2. Open Terminal · 3. Check Node / NPM Versions...
Read more >
Homebridge NPM - npm.io
Homebridge npm. Homebridge is a lightweight NodeJS server you can run on your home network that emulates the iOS HomeKit API. It supports...
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