Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove Homebridge on Raspberry Pi

How can I remove Homebridge from a Raspberry Pi 3. I have attempted the following without any luck.

pi@Development:~ $ sudo npm uninstall homebridge
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.

I have also attempted to remove it not as sudo. A much longer result but still no luck.

pi@Development:~ $ npm uninstall homebridge
npm WARN enoent ENOENT: no such file or directory, open '/home/pi/package.json'
npm WARN pi No description
npm WARN pi No repository field.
npm WARN pi No README data
npm WARN pi No license field.
npm ERR! Linux 4.4.21-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "uninstall" "homebridge"
npm ERR! node v7.3.0
npm ERR! npm v4.0.5
npm ERR! path /home/pi/node_modules/.staging
npm ERR! code EACCES
npm ERR! errno -13
npm ERR! syscall mkdir
npm ERR! Error: EACCES: permission denied, mkdir '/home/pi/node_modules/.staging'
npm ERR! { Error: EACCES: permission denied, mkdir '/home/pi/node_modules/.staging'
npm ERR! errno: -13,
npm ERR! code: 'EACCES',
npm ERR! syscall: 'mkdir',
npm ERR! path: '/home/pi/node_modules/.staging' }
npm ERR! 
npm ERR! Please try running this command again as root/Administrator 
npm ERR! Please include the following file with any support request:
npm ERR! /home/pi/npm-debug.log
like image 463
Husar Avatar asked Dec 27 '16 15:12

Husar


People also ask

What is Homebridge for Raspberry Pi?

With Homebridge installed on your Raspberry Pi, you can now access its web interface. This web interface allows you to control all aspects of the software without physical access to your Pi. 1.

What is the Homebridge default port?

Once you have installed and configured the plugin you can access the interface via http://localhost:8080.

How do I update Homebridge?

Change Version Using Homebridge UI:Click the current Homebridge version on the Status page. Select desired Homebridge version. Click Install.


1 Answers

You can do it globally as root:

sudo npm uninstall -g homebridge

Homebridge's configuration files are stored in ~/.homebridge (if you're using default user "pi", the directory is /home/pi/.homebridge)

like image 175
Rafael Trestini Avatar answered Oct 03 '22 07:10

Rafael Trestini