Closed kylewhirl closed 1 month ago
this is a permissions issue.
How do I fix it without having to copy the code the plugin is trying to execute with sudo?
Try:
sudo nom install -g --unsafe-perm @switchbot/homebridge-switchbot
Try:
sudo npm install -g --unsafe-perm @switchbot/homebridge-switchbot
Still same issue with the same error, directory is not empty
This is still not fixed. Every time I update the plugin I have to many go in and sudo rm -rf the Switchbot folder in node modules. Is there a need to rename the directory on every update?
This isn't something that the plugin is doing, this must be part of the npm install process. What I have seen in most cases is that this is a permissions issue.
How can I fix this then? I’ve never had this issue with other plugins, I even did a fresh install of Homebridge on an entirely new machine and I still have this issue, only with this plugin
I have never had the issue, sorry.
Closing all issues now that v4.0.0 is out. If you are still having an issue after trying v4.0.0, please open a new issue. Keep in mind v4.0.0 has some breaking changes with the config. You will need to re set your config up, however there are some nice added bonuses since you can set settings at a deviceType level or individual level.
Describe the Bug
I get an error when trying to install a new version of the plugin. It gets to rename a directory but can’t since the directory is full. I know how to fix it, but this is not the first time this has happened
To Reproduce
Install v3.1.3 of SwitchBot plugin Install v3.7.0 of SwitchBot plugin
Expected Behavior
The directory should not be renamed, especially not hidden either
Relevant Log Output
Config for homebridge-switchbot
Screenshots
No response
Device and Model
Not needed
Node.js Version
v20.11.1
NPM Version
vI.D.K
Homebridge Version
v1.8.4
Homebridge Switchbot Plugin Version
v3.7.0
Homebridge Config UI X Plugin Version
v4.41.2
Operating System
Raspbian