gpt4 book ai didi

raspberry-pi3 - 如何删除树莓派上的 Homebridge

转载 作者:行者123 更新时间:2023-12-05 00:16:50 26 4
gpt4 key购买 nike

如何从 Raspberry Pi 3 中删除 Homebridge。我尝试了以下操作但没有任何运气。

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.

我也试图将它删除而不是 sudo。一个更长的结果,但仍然没有运气。
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

最佳答案

您可以以 root 身份全局执行此操作:

sudo npm uninstall -g homebridge

Homebridge的配置文件存放在~/.homebridge(如果你使用默认用户“pi”,目录是/home/pi/.homebridge)

关于raspberry-pi3 - 如何删除树莓派上的 Homebridge,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41347971/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com