-
-
Notifications
You must be signed in to change notification settings - Fork 2k
How To Fix Node.js Install Issues On macOS
If you've found yourself with multiple copies of Node.js installed, or need to update Node.js from an old version, these instructions will help you get back to a "standard" setup using hb-service
.
You will need to re-install all your Homebridge plugins after completing these steps. Make a note of which plugins you have installed.
The Homebridge service what makes Homebridge automatically start on boot. As part of this change we will change your process supervisor to use hb-service
which is backed by launchctl
. To do this you will need to remove your existing Homebridge service.
These commands will remove most macOS Homebridge services:
launchctl unload ~/Library/LaunchAgents/com.homebridge.server.plist
sudo rm -rf ~/Library/LaunchAgents/com.homebridge.server.plist
or
sudo launchctl unload /Library/LaunchDaemons/com.homebridge.server.plist
sudo rm -rf /Library/LaunchDaemons/com.homebridge.server.plist
Check that Homebridge is no longer running before proceeding to the next step.
Run this script to remove all copies of Node.js, Homebridge, and plugins and other npm modules installed on your system:
curl -fL https://gist.githubusercontent.com/oznu/312b54364616082c3c1e0b6b02351f0e/raw/remove-node.sh | bash
You can now safely follow the wiki install guides that explain how to install Node.js and setup Homebridge as a service again.
You can now use the Homebridge UI to re-install any plugins you previously had installed.
The wiki guides will always contain instructions on how to install the latest LTS version of Node.js. When you need to update Node.js again in the future, make sure you refer back to those guides for the correct instructions to avoid having to go through this process again.
- Raspberry Pi
- Debian, Ubuntu
- CentOS, Fedora, Red Hat
- Arch, Manjaro
- macOS
- Windows 10 / 11 (Hyper-V)
- Docker
- Synology DSM 7
- Other Platforms
- Basic Troubleshooting
- Backup and Restore
- Child Bridges
- Config File
- Connect To HomeKit
- FFmpeg for Homebridge
- HomeKit Glossary of Terms
- iOS Homemanager App
- mDNS Options
- Remote Access
- Useful Links
- Basic Troubleshooting
- Config Options
- Enabling Accessory Control
- Enabling UI with Docker
- Homebridge Service Command
- Manual Configuration
- Reverse Proxy: Apache
- Reverse Proxy: Nginx and SSL
- Standalone Mode
- Swap From Standalone To Service Mode
- Developer Docs
- API Reference
- Plugin Templates
- Other Links (Internal)
- Other Links (External)