homebridge / homebridge-config-ui-x

The Homebridge UI. Monitor, configure and backup Homebridge from a browser.
https://homebridge.io
MIT License
2.59k stars 369 forks source link

Operation failed with code 243 #2028

Closed Berger1983-has closed 3 months ago

Berger1983-has commented 3 months ago

Describe The Bug

USER: andreasberger DIR: /usr/local CMD: npm install -g homebridge-deebot@6.1.1 [?25l [..................] \ idealTree:lib: sill idealTree buildDeps [..................] \ idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps [..................] / idealTree:lib: sill idealTree buildDeps

[?25h npm ERR! code EACCES npm ERR! syscall open npm ERR! path /Users/andreasberger/.npm/_cacache/tmp/fa790b1b npm ERR! errno -13 npm ERR! npm ERR! Your cache folder contains root-owned files, due to a bug in npm ERR! previous versions of npm which has since been addressed. npm ERR! npm ERR! To permanently fix this problem, please run: npm ERR! sudo chown -R 501:20 "/Users/andreasberger/.npm"

npm ERR! Log files were not written due to an error writing to the directory: /Users/andreasberger/.npm/_logs npm ERR! You can rerun the command with --loglevel=verbose to see the logs in your terminal

Operation failed with code 243.

You can download this log file for future reference.

See https://github.com/homebridge/homebridge-config-ui-x/wiki/Troubleshooting for help.

Logs

No response

Config

No response

Homebridge UI Version

v4.55.1

Homebridge Version

Homebridge v1.7.0

Node.js Version

v20.12.0

Operating System

macOS

Environment Info

{"label"=>"Using hb-service?"}

Raspberry Pi Model

None

bwp91 commented 3 months ago

try deleting this folder /Users/andreasberger/.npm and then trying this installation again.

Lukeneedshelp commented 2 months ago

I am having the same issue but am very new to any of this. Can you help me with error code 243?

cohen-sydney commented 1 month ago

I am having the same issue, any fix??