lprhodes / homebridge-broadlink-rm

Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
571 stars 285 forks source link

Plugin v3.6.22 install error #735

Open SzilagyiR opened 2 years ago

SzilagyiR commented 2 years ago

Hi!

I use this plugin for years without any problem till now. I reistalled my Homebridge v1.3.6 with NodeJs v16.13 and NPM v8.1.3 I trying to install plugin v3.6.22 but it gives error:

npm_ WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated github-version-checker@1.2.0: Versions below v2.0.0 are outdated and should not be used anymore. Please consider upgrading to the latest release, which is v2.2.0 at this time.
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 WARN using --force Recommended protections disabled.
npm ERR! npm ERR! code EACCES
npm ERR! npm ERR! syscall symlink
npm ERR! npm ERR! path ../../../home/homebridge/.npm/_cacache/tmp/git-cloneRKFHeQ
npm ERR! npm ERR! dest /usr/lib/node_modules/homebridge-platform-helper
npm ERR! npm ERR! errno -13
npm ERR! npm ERR! Error: EACCES: permission denied, symlink '../../../home/homebridge/.npm/_cacache/tmp/git-cloneRKFHeQ' -> '/usr/lib/node_modules/homebridge-platform-helper'
npm ERR! npm ERR!  [Error: EACCES: permission denied, symlink '../../../home/homebridge/.npm/_cacache/tmp/git-cloneRKFHeQ' -> '/usr/lib/node_modules/homebridge-platform-helper'] {
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-cloneRKFHeQ',
npm ERR! npm ERR!   dest: '/usr/lib/node_modules/homebridge-platform-helper'
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/2021-11-19T09_57_51_902Z-debug.log

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/homebridge/.npm/_logs/2021-11-19T09_57_54_673Z-debug.log

Command failed. Please review log for details.

I can install plugin version v3.6.18 without problem.

Can anybody explaine what is the probelem here?

Thanks!

greatestview commented 2 years ago

Same here with

v3.6.18 works (thank you @SzilagyiR for this workaround!)

johnnygoodface commented 2 years ago

Same error here:

Homebridge Broadlink RM v3.6.22
Homebridge v1.3.8
Node.js v16.13.1
NPM v8.1.2
dacmail commented 2 years ago

Same error, i'm using:

Homebridge v1.5.0 Node v16.17.0 npm v8.15.0