asednev / homebridge-plugin-govee

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

Permission Denied when upgrading to 1.2.3 from 1.1.6 #75

Closed brian-sumpter closed 1 year ago

brian-sumpter commented 2 years ago

Upgrade fails with the following permissions error. The directory /usr/lib/node_modules/govee-bt-client does not exist on my system, at least not in that location. That directory does exist in /usr/lib/node_modules/homebridge-plugin-govee/node_modules/govee-bt-client however.

54 verbose stack Error: EACCES: permission denied, symlink '../../../home/homebridge/.npm/_cacache/tmp/git-clone5PtXJb' -> '/usr/lib/node_modules/govee-bt-client'
55 verbose cwd /home/homebridge/.npm/_cacache/tmp/git-clone5PtXJb
56 verbose Linux 5.10.60-v7l+
57 verbose node v16.17.0
58 verbose npm  v8.15.0
59 error code EACCES
60 error syscall symlink
61 error path ../../../home/homebridge/.npm/_cacache/tmp/git-clone5PtXJb
62 error dest /usr/lib/node_modules/govee-bt-client
63 error errno -13
64 error [Error: EACCES: permission denied, symlink '../../../home/homebridge/.npm/_cacache/tmp/git-clone5PtXJb' -> '/usr/lib/node_modules/govee-bt-client'] {
64 error   errno: -13,
64 error   code: 'EACCES',
64 error   syscall: 'symlink',
64 error   path: '../../../home/homebridge/.npm/_cacache/tmp/git-clone5PtXJb',
64 error   dest: '/usr/lib/node_modules/govee-bt-client'
64 error }
65 error
65 error The operation was rejected by your operating system.
65 error It is likely you do not have the permissions to access this file as the current user
65 error
65 error If you believe this might be a permissions issue, please double-check the
65 error permissions of the file and its containing directories, or try running
65 error the command again as root/Administrator.
66 verbose exit -13
67 timing npm Completed in 434ms
68 verbose unfinished npm timer reify 1662824357177
69 verbose unfinished npm timer reify:unpack 1662824357285
70 verbose unfinished npm timer reifyNode:node_modules/govee-bt-client 1662824357285
71 verbose code -13
asednev commented 1 year ago

@brian-sumpter this looks like an issue with your system.

65 error The operation was rejected by your operating system.
65 error It is likely you do not have the permissions to access this file as the current user
65 error
65 error If you believe this might be a permissions issue, please double-check the
65 error permissions of the file and its containing directories, or try running
65 error the command again as root/Administrator.