NEWS
UNSOLVED Fehler beim Updaten von Adpatern/JS-controller/Node.js
-
Hallo zusammen,
Bisher habe ich mir hier im Forum durch die SuFu immer helfen können. Jetz leider nicht.
Habe seit heute ein Problem beim Updaten meiner Adapter und von Node.js bzw Js.-Controller.
Update scheinen durch zu sein für die Adapter, tauchen aber kurz danach wieder auf, sprich die "alte" Version wird mir wieder angezeigt. Danach habe ich dann versucht auf aktuelle Node Version zu Updaten. Das klappt aber auch nicht. Bisher hat alles bestens geklappt. Was mache ich falsch, bzw muss ich tun? Im Anhang die Meldungen zu meinem Problem. Wenn ihr noch Infos benötigt lasst es mich wissen.Danke schonmal für eure Hilfe.
Hier mein Sytem:
raspberrypi
Betriebssystem linux
Architektur arm
CPUs 4
Geschwindigkeit 1400 MHz
Modell ARMv7 Processor rev 4 (v7l)
RAM 926.05 MB
Node.js v12.18.0 (Es gibt eine neuere Version: v12.18.2)
Festplatte Größe 28.98 GB
Festplatte frei 25.51 GB
Anzahl der Adapter 301
NPM v6.14.5Update JS
Update js-controller from @3.1.4 to @3.1.6 NPM version: 6.14.5 npm install iobroker.js-controller@3.1.6 --loglevel error --unsafe-perm --prefix "/opt/iobroker" (System call) Package pixman-1 was not found in the pkg-config search path. Perhaps you should add the directory containing `pixman-1.pc' to the PKG_CONFIG_PATH environment variable No package 'pixman-1' found gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1 gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.19.118-v7+ gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/opt/iobroker/node_modules/canvas/build/Release" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72" gyp ERR! cwd /opt/iobroker/node_modules/canvas gyp ERR! node -v v12.18.0 gyp ERR! node-gyp -v v5.1.0 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 configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/opt/iobroker/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5) node-pre-gyp ERR! System Linux 4.19.118-v7+ node-pre-gyp ERR! command "/usr/local/bin/node" "/opt/iobroker/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvas node-pre-gyp ERR! node -v v12.18.0 node-pre-gyp ERR! node-pre-gyp -v v0.11.0 node-pre-gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the canvas@2.6.1 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! /home/iobroker/.npm/_logs/2020-07-06T09_13_41_534Z-debug.log Starting node restart.js
Update Beispiel HUE
$ ./iobroker upgrade hue Update hue from @3.3.2 to @3.3.5 NPM version: 6.14.5npm install iobroker.hue@3.3.5 --loglevel error --prefix "/opt/iobroker" (System call) Package pixman-1 was not found in the pkg-config search path.Perhaps you should add the directory containing `pixman-1.pc'to the PKG_CONFIG_PATH environment variableNo package 'pixman-1' found gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp gyp ERR! configure error gyp ERR! stack Error: `gyp` failed with exit code: 1gyp ERR! stack at ChildProcess.onCpExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)gyp ERR! stack at ChildProcess.emit (events.js:315:20)gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)gyp ERR! System Linux 4.19.118-v7+gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node" "--module_name=canvas" "--module_path=/opt/iobroker/node_modules/canvas/build/Release" "--napi_version=6" "--node_abi_napi=napi" "--napi_build_version=0" "--node_napi_label=node-v72"gyp ERR! cwd /opt/iobroker/node_modules/canvasgyp ERR! node -v v12.18.0gyp ERR! node-gyp -v v5.1.0gyp 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 configure --fallback-to-build --module=/opt/iobroker/node_modules/canvas/build/Release/canvas.node --module_name=canvas --module_path=/opt/iobroker/node_modules/canvas/build/Release --napi_version=6 --node_abi_napi=napi --napi_build_version=0 --node_napi_label=node-v72' (1)node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/opt/iobroker/node_modules/node-pre-gyp/lib/util/compile.js:83:29)node-pre-gyp ERR! stack at ChildProcess.emit (events.js:315:20)node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:1021:16)node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:286:5)node-pre-gyp ERR! System Linux 4.19.118-v7+node-pre-gyp ERR! command "/usr/local/bin/node" "/opt/iobroker/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"node-pre-gyp ERR! cwd /opt/iobroker/node_modules/canvasnode-pre-gyp ERR! node -v v12.18.0node-pre-gyp ERR! node-pre-gyp -v v0.11.0node-pre-gyp ERR! not ok npm ERR! code ELIFECYCLEnpm ERR! errno 1npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the canvas@2.6.1 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! /home/iobroker/.npm/_logs/2020-07-06T09_26_12_824Z-debug.log upload [4] hue.admin /opt/iobroker/node_modules/iobroker.hue/admin/words.js words.js application/javascript Update "system.adapter.hue.0" upload [3] hue.admin /opt/iobroker/node_modules/iobroker.hue/admin/instruction.png instruction.png image/png upload [2] hue.admin /opt/iobroker/node_modules/iobroker.hue/admin/index_m.html index_m.html text/html 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 Adapter "hue" updated process exited with code 0
Update Node
pi@raspberrypi:~ $ sudo apt-get install -y nodejs Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig nodejs ist schon die neueste Version (12.18.2-1nodesource1). Das folgende Paket wurde automatisch installiert und wird nicht mehr benötigt: rpi-eeprom-images Verwenden Sie »sudo apt autoremove«, um es zu entfernen. 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 6 nicht aktualisiert. pi@raspberrypi:~ $ node -v v12.18.0
-
-
@crunchip : Danke soweit habe ich alles in den Griff bekommen. Jetz habe ich "nur" noch das Problem das ich nicht auf Node.js 12.18.02 Udaten kann. Sieh Meldung
pi@raspberrypi:~ $ sudo apt-get install -y nodejs Paketlisten werden gelesen... Fertig Abhängigkeitsbaum wird aufgebaut. Statusinformationen werden eingelesen.... Fertig nodejs ist schon die neueste Version (12.18.2-1nodesource1). 0 aktualisiert, 0 neu installiert, 0 zu entfernen und 6 nicht aktualisiert. pi@raspberrypi:~ $ node -v v12.18.0
-
@Spark sagte in Fehler beim Updaten von Adpatern/JS-controller/Node.js:
nodejs ist schon die neueste Version
@crunchip : Habe es nun gelöst. Hatte ein Brett vor dem Kopf.
Habe noch folgendes ausgeführt und alles ist gut
sudo npm install -g n sudo n 12.18.2