homebridge-broadlink-rm icon indicating copy to clipboard operation
homebridge-broadlink-rm copied to clipboard

Plugin v3.6.22 install error

Open SzilagyiR opened this issue 3 years ago • 3 comments

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 [email protected]: 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 [email protected]: 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!

SzilagyiR avatar Nov 19 '21 09:11 SzilagyiR

Same here with

  • Homebridge Broadlink RM v3.6.22
  • Homebridge v1.3.8
  • Node.js v16.13.0
  • NPM v8.1.4

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

greatestview avatar Nov 25 '21 22:11 greatestview

Same error here:

Homebridge Broadlink RM v3.6.22
Homebridge v1.3.8
Node.js v16.13.1
NPM v8.1.2

johnnygoodface avatar Dec 14 '21 01:12 johnnygoodface

Same error, i'm using:

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

dacmail avatar Aug 23 '22 12:08 dacmail