Closed Crox77 closed 4 years ago
Are you using hb-service?
I believe so yes
I cetainly ran the install command and homebrisge restarts its self from within the UI
Just run:
sudo hb-service uninstall
sudo hb-service install
This will fix your file permissions.
in terminal window yeah?
Brilliant Worked a Treat, Thanks
sorry that did not work?
Perms check on local node_modules not ok Check the permissions of files in /Users/XXXXXX/Documents/GitHub/homebridge-inkbird-wifi-gateway/node_modules (should be owned by current user)
How do I fix this?
Describe Your Problem:
Keep getting permission error falures when updating, I believe I have set Sudo Correcty. please advise what's going wrong Thanks
Logs:
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/node-abi npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/prebuild-install npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/node-cache npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/dayjs npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/systeminformation npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@types npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/@nestjs npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/node-abi npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/node-abi' npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/node-abi'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules/homebridge-config-ui-x/node_modules/node-abi' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It is likely you do not have the permissions to access this file as the current user npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator.
npm ERR! A complete log of this run can be found in: npm ERR! /Users/Crox-iMac/.npm/_logs/2020-06-06T14_02_30_555Z-debug.log
Command failed. Please review log for details.
Homebridge Config: