Closed dorminyk closed 3 years ago
It looks like npm locked some files on a previous install. These commands should get you fixed up.
cd ~/.hoobs
sudo rm -fR node_modules
npm install
Looks like that fixed it, thanks!
It looks like npm locked some files on a previous install. These commands should get you fixed up.
cd ~/.hoobs sudo rm -fR node_modules npm install
I've submitted a couple of bugs today but also had same problem when trying to fix FFMPEG - would not allow me to uninstall the plug in. I don't want or need to uninstall FFMPEG I just need to get it working today. Is it possible that the commands you show might work for me as well?
@resgroupmsr maybe. Are you installing FFMPEG from the interface?
@resgroupmsr maybe. Are you installing FFMPEG from the interface?
If you mean in HOOBS and plugin section then yes. I had not changed anything on FFMPEG it just stopped working today at around 11:30. I have my working config backed up so thought I'd just remove the plugin and try again but wouldn't let me uninstall. Nothing I do gets the cameras back to working state. An error occurred while making snapshot request: Error: spawn /home/hoobs/.hoobs/node_modules/ffmpeg-for-homebridge/ffmpeg EACCES errors on snapshot creation and streaming.
Did the ffmpeg-for-homebridge plugin update? You might need to upgrade node to version 14.15.2. Please open a new issue, as this is not the same problem.
Did the ffmpeg-for-homebridge plugin update? You might need to upgrade node to version 14.15.2. Please open a new issue, as this is not the same problem.
How would I update the Node? No the plugin did not update as far as I know.
I tried this command from terminal in HOOBS. Same kind of EACCES
Any ideas?
hoobs@hoobs:/home/hoobs/.hoobs/etc $ npm install -g npm npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/cliui/node_modules/ansi-regex npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/cliui/node_modules/strip-ansi npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/co npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/dot-prop npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/fast-deep-equal npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/get-caller-file npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/graceful-fs npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/configstore npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/invert-kv npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/json-schema-traverse npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/ajv npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/lcid npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/mem/node_modules/mimic-fn npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/mkdirp npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/gentle-fs npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/bin-links npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/nice-try npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/nopt npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/npm-registry-fetch/node_modules/safe-buffer npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/npm-registry-fetch npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/os-locale/node_modules/cross-spawn npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/os-locale/node_modules/execa npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/p-defer npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/map-age-cleaner npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/p-is-promise npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/mem npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/os-locale npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/p-try npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/p-limit npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/p-locate npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/locate-path npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/find-up npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/rc/node_modules/minimist npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/require-main-filename npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/spdx-license-ids npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/har-validator npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/wrap-ansi/node_modules/string-width npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/wrap-ansi npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/cliui npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/yargs-parser npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/yargs/node_modules/y18n npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/yargs npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/libcipm npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/libnpx npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/meant npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/npm-audit-report npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/npm-user-validate npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/cliui/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/mem/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/npm-registry-fetch/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/os-locale/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/rc/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/wrap-ansi/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/npm/node_modules/yargs/node_modules npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules npm ERR! code EACCES npm ERR! syscall access npm ERR! path /usr/local/lib/node_modules/npm/node_modules/cliui/node_modules/ansi-regex npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/npm/node_modules/cliui/node_modules/ansi-regex' npm ERR! [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/npm/node_modules/cliui/node_modules/ansi-regex'] { npm ERR! stack: "Error: EACCES: permission denied, access '/usr/local/lib/node_modules/npm/node_modules/cliui/node_modules/ansi-regex'", npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'access', npm ERR! path: '/usr/local/lib/node_modules/npm/node_modules/cliui/node_modules/ansi-regex' 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! /home/hoobs/.npm/_logs/2020-12-16T20_20_40_060Z-debug.log hoobs@hoobs:/home/hoobs/.hoobs/etc $
You can't install global Node modules from a non elevated terminal. That's why you are getting an EACCES error.
To install the npm module globally, the command should be this.
sudo npm install -g npm
HOOBS does not use global plugins. You should install plugins via the UI regardless of that the plugin dev tells you.
You can't install global Node modules from a non elevated terminal. That's why you are getting an EACCES error.
To install the npm module globally, the command should be this.
sudo npm install -g npm
HOOBS does not use global plugins. You should install plugins via the UI regardless of that the plugin dev tells you.
I only have certified plugins installed and only installed via the HOOBS UI. I'm running that command now from terminal.
You can't install global Node modules from a non elevated terminal. That's why you are getting an EACCES error. To install the npm module globally, the command should be this.
sudo npm install -g npm
HOOBS does not use global plugins. You should install plugins via the UI regardless of that the plugin dev tells you.
I only have certified plugins installed and only installed via the HOOBS UI. I'm running that command now from terminal.
Same errors. I have to stop working on this now and do my real job. Will this work better from direct connection to the Pi?
I'm opening this up again because now after restoring configuration settings, it's not allowing me to update plugins.
Without removing all of the plugins, is there a way that I can resolve this?
Here's an error from the log file..
_1/2/2021, 3:50:50 PM ERR! Refusing to delete /home/hoobs/.hoobs/node_modules/homebridge-ring/node_modules/.bin/uuid: is outside /home/hoobs/.hoobs/node_modules/homebridge-ring/node_modules/uuid and not a link npm ERR! File exists: /home/hoobs/.hoobs/node_modules/homebridge-ring/node_modules/.bin/uuid npm ERR! Remove the existing file and try again, or run npm npm ERR! with --force to overwrite files recklessly. 1/2/2021, 3:50:50 PM 1/2/2021, 3:50:50 PM npm ERR! A complete log of this run can be found in: npm ERR! /home/hoobs/.npm/_logs/2021-01-02T21_50_50717Z-debug.log
NPM root locked this file
/home/hoobs/.hoobs/node_modules/homebridge-ring/node_modules/.bin/uuid
so run
sudo rm -f /home/hoobs/.hoobs/node_modules/homebridge-ring/node_modules/.bin/uuid
This is being taken care of in our next major release.
Description Hue Plugin is not working after importing settings and configuration backup. Attempted to remove Hue Plugin and it is giving me an uninstall error.
Plugin name HOOBS plugin for Philips Hue and deCONZ
Please report the issue to the plugin developer We like to help the community, however some issues are out of our control. Please report this to the plugin developer and include a link here.
Version HOOBS Core Current Version: 3.3.1
Did you upgrade Please let us know if you upgraded from a previous version.
Pervious version If you upgraded, please let us know your previous version.
Did you orginally upgrade to HOOBS 3 from HOOBS 2.1.1? Did you perform an upgrade from HOOBS 2.1.1? Some things are different.
What device are you using? Please let us know the device you are running HOOBS on.
If this is a custom install, what's your operating system? Raspberry Pi on an Arm7
Post your config
Post your log You can get the log from the intercafe. This is in the Log section.
Additional context Add any other context about the problem here.