asednev / homebridge-plugin-govee

Govee H-series Thermometer Hygrometer plugin for Homebrige.
Apache License 2.0
53 stars 9 forks source link

Install Error on HB 1.5.0 #77

Closed mariusstrom closed 1 year ago

mariusstrom commented 1 year ago

Hi there - I'm trying to install 1.2.3 on HB 1.5.0 on Raspbian. I'm getting the following error:

USER: homebridge
DIR: /usr
CMD: sudo -E -n npm install -g homebridge-plugin-govee@1.2.3

npm ERR! code 243
npm ERR! git dep preparation failed
npm ERR! command /usr/bin/node /usr/lib/node_modules/npm/bin/npm-cli.js install --force --cache=/home/homebridge/.npm --prefer-offline=false --prefer-online=true --offline=false --no-progress --no-save --no-audit --include=dev --include=peer --include=optional --no-package-lock-only --no-dry-run
npm ERR! npm ERR! code EACCES
npm ERR! npm ERR! syscall symlink
npm ERR! npm ERR! path ../../../home/homebridge/.npm/_cacache/tmp/git-cloneIMCBh7
npm ERR! npm ERR! dest /usr/lib/node_modules/govee-bt-client
npm ERR! npm ERR! errno -13
npm ERR! npm ERR! Error: EACCES: permission denied, symlink '../../../home/homebridge/.npm/_cacache/tmp/git-cloneIMCBh7' -> '/usr/lib/node_modules/govee-bt-client'
npm ERR! npm ERR!  [Error: EACCES: permission denied, symlink '../../../home/homebridge/.npm/_cacache/tmp/git-cloneIMCBh7' -> '/usr/lib/node_modules/govee-bt-client'] {
npm ERR! npm ERR!   errno: -13,
npm ERR! npm ERR!   code: 'EACCES',
npm ERR! npm ERR!   syscall: 'symlink',
npm ERR! npm ERR!   path: '../../../home/homebridge/.npm/_cacache/tmp/git-cloneIMCBh7',
npm ERR! npm ERR!   dest: '/usr/lib/node_modules/govee-bt-client'
npm ERR! npm ERR! }
npm ERR! npm ERR! 
npm ERR! npm ERR! The operation was rejected by your operating system.
npm ERR! npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! npm ERR! 
npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! npm ERR! permissions of the file and its containing directories, or try running
npm ERR! npm ERR! the command again as root/Administrator.
npm ERR! 
npm ERR! npm ERR! A complete log of this run can be found in:
npm ERR! npm ERR!     /home/homebridge/.npm/_logs/2022-09-25T07_21_42_600Z-debug-0.log

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/homebridge/.npm/_logs/2022-09-25T07_21_31_802Z-debug-0.log

Any suggestions? Other plugins both update and clean-install just fine, it's only this one that fails. I've also tried to manually install `npm install -g govee-bt-client, which works.. but then installing homebridge-plugin-govee fails trying to rename the govee-bt-client folder in /usr/lib/node_modules.

substance12 commented 1 year ago

I have this issue as well.

mariusstrom commented 1 year ago

I'm noticing the latest version on GitHub shows release 1.2.5 but on npmjs.com it shows 1.2.3 from 5 months ago. I wonder if somehow the versions are out of sync?

MB-00101110 commented 1 year ago

+1

aidupre commented 1 year ago

I can't update past 1.16 same errors as above

maodelg commented 1 year ago

Can anyone comment on the issues? I have not been able to use this plugin... 1.16 stopped working for me, no longer connects with my BLE sensors, and the update to the latest version continues to fail due to some type of Github permissions problem...

arjunmehta commented 1 year ago

Also having this issue

@asednev perhaps you could republish the package? As @mariusstrom pointed out above, the versions don't match between github and npmjs. But I'm also seeing in homebridge the release notes simply say 1.2.5 but when updating it's going for 1.2.3.

Though the error does seem specific to the govee-bt-client module, hopefully it is as simple as the version numbers not being as expected.

asednev commented 1 year ago

@arjunmehta thanks for tagging me. There must've been an issue with publishing 1.2.5 to npm. I just published 1.2.7 which is the same code as 1.2.5. Please try again.

https://www.npmjs.com/package/homebridge-plugin-govee/v/1.2.7

arjunmehta commented 1 year ago

Thank you for the quick work on this @asednev! Seems to work just great now. Thanks again!