NEWS
Ubuntu: Hue / Ping / HomeKit… können nicht installiert werden
-
Huhu,
Ich nutze jetzt schon länger ioBroker und bin immer mehr begeistert.
Meine erste installation war auf meinem Raspberry Pi v1, da mit hier aber die Leistung zu gering war und ich eh einen intel NUC 24/7 laufen habe, ist das ganze nun auf diesen umgezogen.
Habe hier Ubuntu 16.04 LTE drauf laufen, und konnte iOBroker ohne Probleme installieren.
Nun hab ich aber Probleme einige Adapter zu installieren, bekomme folgende Meldungen:
HomeKit
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12) gyp ERR! System Linux 4.4.0-31-genericgyp ERR! command "/usr/bin/nodejs" "/usr/bin/node-gyp" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/mdns gyp ERR! node -v v4.2.6 gyp ERR! node-gyp -v v3.0.3 gyp ERR! not ok npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json' npm WARN iobroker No descriptionnpm WARN iobroker No repository field. npm WARN iobroker No README data npm WARN iobroker No license field. npm ERR! Linux 4.4.0-31-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.homekit" "--production" "--prefix" "/opt/iobroker"npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! code ELIFECYCLE npm ERR! mdns@2.2.11 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the mdns@2.2.11 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the mdns package, npm ERR! not with npm itself.npm ERR! Tell the author that this fails on your system: npm ERR! node-gyp rebuild npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs mdns npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls mdns npm ERR! There is likely additional logging output above. npm ERR! Please include the following file with any support request:npm ERR! /npm-debug.log ERROR: host.kodi-desktop Cannot install iobroker.homekit: 1 ERROR: process exited with code 25
Hue
$ ./iobroker add hue host.kodi-desktop install adapter hue npm install --production --prefix "/opt/iobroker/node_modules/iobroker.hue" (System call) npm ERR! Linux 4.4.0-31-generic npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production" "--prefix" "/opt/iobroker/node_modules/iobroker.hue" npm ERR! node v4.2.6npm ERR! npm v3.5.2 npm ERR! Cannot read property 'target' of nullnpm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https: github.com/npm/issues="">npm ERR! Please include the following file with any support request:npm ERR! /npm-debug.log Cannot install iobroker.hue: 1 ERROR: process exited with code 25</https:>
Ping
$ ./iobroker add ping host.kodi-desktop install adapter ping npm install --production --prefix "/opt/iobroker/node_modules/iobroker.ping" (System call) npm ERR! Linux 4.4.0-31-genericnpm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production" "--prefix" "/opt/iobroker/node_modules/iobroker.ping" npm ERR! node v4.2.6npm ERR! npm v3.5.2 npm ERR! Cannot read property 'target' of nullnpm ERR! npm ERR! If you need help, you may report this error at: npm ERR! <https: github.com/npm/issues="">npm ERR! Please include the following file with any support request:npm ERR! /npm-debug.log Cannot install iobroker.ping: 1 ERROR: process exited with code 25</https:>
Habe anschließend noch versucht die Installation über das Terminal direkt zu machen.
-
cd /opt/iobroker
-
sudo Biobroker stop
-
sudo npm install iobroker.hue –production
opt/iobroker
├── iobroker@0.7.1
├── iobroker.fritzbox@0.2.1
├── iobroker.hue@0.5.8
└── iobroker.node-red@1.1.1
npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json'
npm WARN iobroker No description
npm WARN iobroker No repository field.
npm WARN iobroker No README data
npm WARN iobroker No license field.
- sudo iobroker upload hue
got /opt/iobroker/node_modules/iobroker.hue/admin
upload [1] hue.admin /opt/iobroker/node_modules/iobroker.hue/admin/index.html index.html text/html
upload [0] hue.admin /opt/iobroker/node_modules/iobroker.hue/admin/hue.jpeg hue.jpeg image/jpeg
system.adapter.hue does not exist
- sudo iobroker add hue
host.kodi-desktop install adapter hue
npm install –production --prefix "/opt/iobroker/node_modules/iobroker.hue" (System call)
npm ERR! Linux 4.4.0-31-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "--production" "--prefix" "/opt/iobroker/node_modules/iobroker.hue"
npm ERR! node v4.2.6
npm ERR! npm v3.5.2
npm ERR! Cannot read property 'target' of null
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! <https://github.com/npm/npm/issues>
npm ERR! Please include the following file with any support request:
npm ERR! /opt/iobroker/npm-debug.log
Cannot install iobroker.hue: 1
Ich hoffe ihr könnt mir helfen, würde das großartige system gerne weiter im vollem Umfang nutzen
-
-
Nach ein bisschen durchs forum lesen, hier die Lösung von Blutfox aus http://forum.iobroker.net/viewtopic.php?f=17&t=3213
Diese "target"-Fehler ist Merkmal von npm@3
Schreibe "npm install -g npm@latest-2".
Dann sollte gehen.