colinbendell / homebridge-blink-for-home

Blink For Home Camera Homebridge plugin
MIT License
87 stars 27 forks source link

Error when updating to 3.9.1 on macOS #109

Open brsexton opened 2 years ago

brsexton commented 2 years ago

Hello all. I am running Homebridge on macOS Catalina. When I try update the Blink Plugin, I receive the error below. I am performing the update logged in with the admin account. I am not sure what else to do. The previous version installs just fine. Any help would be appreciated.

npm ERR! code 1 npm ERR! path /usr/local/lib/node_modules/homebridge-blink-for-home/node_modules/ffmpeg-for-homebridge npm ERR! command failed npm ERR! command sh -c node install.js npm ERR! Downloading ffmpeg from https://github.com/homebridge/ffmpeg-for-homebridge/releases/latest/download/ffmpeg-darwin-x86_64.tar.gz npm ERR! node:events:504 npm ERR! throw er; // Unhandled 'error' event npm ERR! ^ npm ERR! npm ERR! Error: EACCES: permission denied, open '/Users/admin/.npm/_ffmpeg_for_homebridge/.download' npm ERR! Emitted 'error' event on WriteStream instance at: npm ERR! at emitErrorNT (node:internal/streams/destroy:157:8) npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:122:3) npm ERR! at processTicksAndRejections (node:internal/process/task_queues:83:21) { npm ERR! errno: -13, npm ERR! code: 'EACCES', npm ERR! syscall: 'open', npm ERR! path: '/Users/admin/.npm/_ffmpeg_for_homebridge/.download' npm ERR! }

npm ERR! A complete log of this run can be found in: npm ERR! /Users/admin/.npm/_logs/2022-04-10T20_24_19_879Z-debug-0.log

colinbendell commented 2 years ago

That seems odd. Can you check your permissions on the directory structure /Users/admin/.npm/_ffmpeg_for_homebridge/.download. I'd also check to see if node has access to write to that location.

brsexton commented 2 years ago

Just for kicks, I gave the group "everyone" Read Write Execute permissions to that location. I have reinstalled node and I still can't get the plugin to update.