NEWS
Fehler bei installation des Harmony Adapters
-
Hallo zusammen,
ich bin mit meinen iobroker auf nen neuen Raspi3 umgestiegen und habe dabei genau die Anleitung von iobroker.net befolgt.
Habe ein Jessie light drauf, iobroker läuft auch soweit, nur bei der installation kommt folgender Fehler:
$ ./iobroker add harmony npm install iobroker.harmony --production --prefix "/opt/iobroker" (System call) npm WARN engine harmonyhubjs-client@1.1.8: wanted: {"npm":">=3.0.0"} (current: {"node":"4.4.7","npm":"2.15.8"}) npm WARN addRemoteGit Error: not found: gitnpm WARN addRemoteGit at getNotFoundError (/usr/lib/node_modules/npm/node_modules/which/which.js:14:12) npm WARN addRemoteGit at F (/usr/lib/node_modules/npm/node_modules/which/which.js:69:19) npm WARN addRemoteGit at E (/usr/lib/node_modules/npm/node_modules/which/which.js:81:29) npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/which.js:90:16 npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5npm WARN addRemoteGit at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5 npm WARN addRemoteGit at FSReqWrap.oncomplete (fs.js:82:15) npm WARN addRemoteGit git+https://github.com/swissmanu/ltx.git#cdata-for-ltx-parser resetting remote /root/.npm/_git-remotes/https-github-com-swissmanu-ltx-git-634cc128 because of error: { [Error: not found: git] code: 'ENOGIT' } npm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/swissmanu/ltx.git /root/.npm/_git-remotes/https-github-com-swissmanu-ltx-git-634cc128: undefinednpm ERR! git clone --template=/root/.npm/_git-remotes/_templates --mirror https://github.com/swissmanu/ltx.git /root/.npm/_git-remotes/https-github-com-swissmanu-ltx-git-634cc128: undefined npm ERR! Linux 4.4.15-v7+npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.harmony" "--production" "--prefix" "/opt/iobroker" npm ERR! node v4.4.7 npm ERR! npm v2.15.8 npm ERR! code ENOGIT npm ERR! not found: git npm ERR! npm ERR! Failed using git. npm ERR! This is most likely not a problem with npm itself. npm ERR! Please check if you have git installed and in your PATH. npm ERR! Please include the following file with any support request:npm ERR! /opt/iobroker/node_modules/npm-debug.log ERROR: host.Raspi3 Cannot install iobroker.harmony: 1 ERROR: process exited with code 25
Ich bin in Linux nicht sonderlich bewandert.
Kann mit jemand helfen?
Ich scheint ja mit der npm-Version zusammenzhängen, aber das ist ja die ganz frische nodejs-Installation aus der Anleitung …
Schon mal Danke im voraus und Gruß,
Oliver
-
Die npm Version die vom Harmony Adapter angefordert wird ist tatsächlich neuer als die installierte. Allerdings gibt es mit npm 3.xx Probleme.
Gottseidank ist dies auch nur eine WARNung und kein ERROR.
Diesen hast du dann mit ENOGIT. Soll heißen Error NO Gut installiert.
Ich habe auch RaspBIAN Lite drauf und kann mich nicht erinnern gut installiert zu haben und hatte keine Probleme mit dem Harmony Adapter.
Probiere mal
sudo apt-get install git
Schlimmstenfalls kommt eine Meldung in etwa wie
git ist bereits die aktuelle Version.
Wenn etwas installiert wird, danach nochmal den Adapter installieren.
Gruß
Rainer
-
Danke!
Scheint funktioniert zu haben.
Die Installation sah dann so aus:
root@Raspi3:/opt/iobroker# ./iobroker add harmony npm install iobroker.harmony --production --prefix "/opt/iobroker" (System call) npm WARN engine harmonyhubjs-client@1.1.8: wanted: {"npm":">=3.0.0"} (current: {"node":"4.4.7","npm":"2.15.8"}) npm WARN addRemoteGit Error: Command failed: git config --get remote.origin.url npm WARN addRemoteGit npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:213:12) npm WARN addRemoteGit at emitTwo (events.js:87:13) npm WARN addRemoteGit at ChildProcess.emit (events.js:172:7) npm WARN addRemoteGit at maybeClose (internal/child_process.js:827:16) npm WARN addRemoteGit at Socket. <anonymous>(internal/child_process.js:319:11) npm WARN addRemoteGit at emitOne (events.js:77:13) npm WARN addRemoteGit at Socket.emit (events.js:169:7) npm WARN addRemoteGit at Pipe._onclose (net.js:486:12) npm WARN addRemoteGit git+https://github.com/swissmanu/ltx.git#cdata-for-ltx-parser resetting remote /root/.npm/_git- remotes/https-github-com-swissmanu-ltx-git-634cc128 because of error: { [Error: Command failed: git config --get remot e.origin.url npm WARN addRemoteGit ] npm WARN addRemoteGit killed: false, npm WARN addRemoteGit code: 1, npm WARN addRemoteGit signal: null, npm WARN addRemoteGit cmd: 'git config --get remote.origin.url' } host.Raspi3 install adapter harmony got /opt/iobroker/node_modules/iobroker.harmony/admin upload [1] harmony.admin /opt/iobroker/node_modules/iobroker.harmony/admin/index.html index.html text/html upload [0] harmony.admin /opt/iobroker/node_modules/iobroker.harmony/admin/harmony.png harmony.png image/png host.Raspi3 object system.adapter.harmony created host.Raspi3 create instance harmony host.Raspi3 object system.adapter.harmony.0.uptime created host.Raspi3 object system.adapter.harmony.0.memRss created host.Raspi3 object system.adapter.harmony.0.memHeapTotal created host.Raspi3 object system.adapter.harmony.0.memHeapUsed created host.Raspi3 object system.adapter.harmony.0.connected created host.Raspi3 object system.adapter.harmony.0.alive created host.Raspi3 object system.adapter.harmony.0 created</anonymous>
Viele Warnungen, aber das Adapte ist jetzt drauf.
Mal sehen, ob er stabil läuft.
Gruß,
Oliver