lukasroegner / homebridge-apple-tv-remote

Plugin for controlling Apple TVs in homebridge.
MIT License
131 stars 13 forks source link

cant install :npm install -g node-appletv-x-----getting error #113

Open alon112 opened 2 years ago

alon112 commented 2 years ago

try to install the npm. get this error

npm ERR! code EACCES npm ERR! syscall mkdir npm ERR! path /usr/local/lib/node_modules/node-appletv-x npm ERR! errno -13 npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/node-appletv-x' npm ERR! [Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/node-appletv-x'] { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'mkdir', npm ERR! path: '/usr/local/lib/node_modules/node-appletv-x' 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/pi/.npm/_logs/2021-09-21T17_51_09_460Z-debug.log

tvos 15, HB last version

how can I solve it?

sschuste commented 2 years ago

sudo npm install -g node-appletv-x

but unfortunately the plugin isn't working with iOS 15.

alon112 commented 2 years ago

it will support ? this is why I get this error?

sschuste commented 2 years ago

You get this error because you probably missed to use sudo while installing.

Since a few days the plugin does not work anymore. Apple has changed something in tvOS 15 that prevents the plugin from running correctly. You can install the plugin (if you use sudo), but afterwards an error is displayed in the Homebridge log that the plugin cannot find any AppleTV.

Normally this is a very good plugin. I hope the developer will take care of it, but at the moment he is not responding.