NEWS
SOLVED ZigBee 0.10.3
-
Hallo!
Ich habe den ZigBee-Adapter von Version 0.10.2 auf 0.10.3 upgedatet. Seitdem bekomme ich folgende Fehlermeldung:
-
lösche manuell diese Ordner aus den node-modules
@serialport cc-znp serialport zcl-packet zigbee-shepherd zigbee-shepherd-converter
sollte ein Ordner nicht da sein ist nicht schlimm...hauptsache der ganze pulk ist nicht vorhanden
und installiere den Adapter ohne den zu löschen aus dem GIT nochmal
-
da ist was mit dem Serialport falsch gelaufen
-
Tja... Aber was kann ich da machen?
-
lösche manuell diese Ordner aus den node-modules
@serialport cc-znp serialport zcl-packet zigbee-shepherd zigbee-shepherd-converter
sollte ein Ordner nicht da sein ist nicht schlimm...hauptsache der ganze pulk ist nicht vorhanden
und installiere den Adapter ohne den zu löschen aus dem GIT nochmal
-
Perfekt, hat tadellos funktioniert.
Vielen Dank! -
Nun passiert das, wenn ich den Adapter aus dem GIT erneut installiere.
pi@ioBroker-Pi:/opt/iobroker $ sudo npm install iobroker.zigbee > serialport@6.2.2 install /opt/iobroker/node_modules/cc-znp/node_modules/serialport > prebuild-install || node-gyp rebuild module.js:550 throw err; ^ Error: Cannot find module './index' at Function.Module._resolveFilename (module.js:548:15) at Function.Module._load (module.js:475:25) at Module.require (module.js:597:17) at require (internal/module.js:11:18) at Object.<anonymous> (/opt/iobroker/node_modules/.bin/rc:2:10) at Module._compile (module.js:653:30) at Object.Module._extensions..js (module.js:664:10) at Module.load (module.js:566:32) at tryModuleLoad (module.js:506:12) at Function.Module._load (module.js:498:3) gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.15.0" gyp WARN EACCES attempting to reinstall using temporary dev dir "/opt/iobroker/node_modules/cc-znp/node_modules/serialport/.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 '/opt/iobroker/node_modules/cc-znp/node_modules/serialport/.node-gyp' gyp ERR! System Linux 4.14.79-v7+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/cc-znp/node_modules/serialport gyp ERR! node -v v8.15.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.3 (node_modules/osx-temperature-sensor): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! serialport@6.2.2 install: `prebuild-install || node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the serialport@6.2.2 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-06-02T16_53_03_526Z-debug.log
-
@voodoo78 sagte in ZigBee 0.10.3:
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/8.15.0"
-
Root hat aber die Schreibrechte.
-
Hat niemand eine Idee, was ich machen könnte?
-
@voodoo78 hm? ich bin zwar noch neu aber hatte auch probleme mit zigbee...
habe mir so geholfen: im verzeichniss opt/iobroker den befehl
npm rebuild ausgeführt....
danach den serialport repariert wie mir jemand in einem anderen froum geschrieben hat mit dem befehl:
sudo npm install serialport --unsafe-perm --build-from-source
Rennt jetzt wie Sau!!!!
Aber bitte ich bin anfänger und probier mich auch in den foren aus und mach gerade learning by doing... also alles ohne gewähr...
lg