Hi everyone,
I installed the hue branch of the led-light plugin from git. I tried to install it via “sudo npm install”. However, I received the following error messages:
gyp WARN EACCES user “root” does not have permission to access the dev dir "/root/.node-gyp/0.10.24"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport/.node-gyp"
gyp http GET http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
gyp http 200 http://nodejs.org/dist/v0.10.24/node-v0.10.24.tar.gz
make: Entering directory '/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport/build’
make: *** No rule to make target ‘…/.node-gyp/0.10.24/common.gypi’, needed by ‘Makefile’. Schluss.
make: Leaving directory '/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport/build’
gyp ERR! build error
gyp ERR! stack Error: make
failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:267:23)
gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:789:12)
gyp ERR! System Linux 4.1.13-v7+
gyp ERR! command “/usr/local/bin/node” “/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “build” “–fallback-to-build” “–module=/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport/build/Release/node-v11-linux-arm/serialport.node” “–module_name=serialport” "–module_path=/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport/build/Release/node-v11-linux-arm"
gyp ERR! cwd /home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport
gyp ERR! node -v v0.10.24
gyp ERR! node-gyp -v v0.12.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport/build/Release/node-v11-linux-arm/serialport.node --module_name=serialport --module_path=/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport/build/Release/node-v11-linux-arm’ (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:98:17)
node-pre-gyp ERR! stack at maybeClose (child_process.js:735:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (child_process.js:802:5)
node-pre-gyp ERR! System Linux 4.1.13-v7+
node-pre-gyp ERR! command “node” “/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport/node_modules/.bin/node-pre-gyp” “install” "–fallback-to-build"
node-pre-gyp ERR! cwd /home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport
node-pre-gyp ERR! node -v v0.10.24
node-pre-gyp ERR! node-pre-gyp -v v0.6.18
node-pre-gyp ERR! not ok
Failed to execute ‘/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport/build/Release/node-v11-linux-arm/serialport.node --module_name=serialport --module_path=/home/pi/pimatic-app/node_modules/pimatic-led-light/node_modules/node-milight-rf24/node_modules/serialport/build/Release/node-v11-linux-arm’ (1)
npm ERR! usb@1.0.4 install: node shyp-blacklist.js win32-x64 win32-ia32 darwin-x64 || node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the usb@1.0.4 install script.
npm ERR! This is most likely a problem with the usb package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node shyp-blacklist.js win32-x64 win32-ia32 darwin-x64 || node-gyp rebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls usb
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 4.1.13-v7+
npm ERR! command “/usr/local/bin/node” “/usr/local/bin/npm” "install"
npm ERR! cwd /home/pi/pimatic-app/node_modules/pimatic-led-light
npm ERR! node -v v0.10.24
npm ERR! npm -v 1.3.21
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/pi/pimatic-app/node_modules/pimatic-led-light/npm-debug.log
npm ERR! not ok code 0
Anyone with an idea what I could do?
Cheers,
Leopold