Hallo
Ich bekomme folgende Fehlermeldung beim installieren des Plugins
Code
sudo npm i -g homebridge-gpio-motion-sensor
> [email protected] install /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/epoll
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/11.5.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/epoll/.node-gyp"
gyp WARN install got an error, rolling back install
gyp WARN install got an error, rolling back install
gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/epoll/.node-gyp'
gyp ERR! System Linux 4.14.98-v7+
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/homebridge-gpio-motion-sensor/node_modules/epoll
gyp ERR! node -v v11.5.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-04-06T14_40_42_668Z-debug.log
Alles anzeigen
Meine node version ist: 11.5.0
Meine npm version ist: 6.9.0
Meine Homebridge Version ist: 0.4.48
Bisher hat die Installation von Plugins immer problemlos funktioniert.
Kann jemand helfen?