NEWS
[How-to] Node.js für ioBroker richtig updaten
-
jetzt ging es schon mal weiter.
svenilee@Gotham-City:/opt/iobroker$ npm i iobroker.js-controller --production --force npm WARN using --force I sure hope you know what you are doing. npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3 > iobroker.js-controller@1.5.14 preinstall /opt/iobroker/node_modules/iobroker.js-controller > node lib/preinstallCheck.js NPM version: 6.11.3 npm version >= 5: disabling package-lock > ursa-optional@0.9.10 install /opt/iobroker/node_modules/ursa-optional > node rebuild.js > diskusage@1.1.3 install /opt/iobroker/node_modules/diskusage > node-gyp rebuild make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird betreten CXX(target) Release/obj.target/diskusage/src/main.o CXX(target) Release/obj.target/diskusage/src/diskusage_posix.o SOLINK_MODULE(target) Release/obj.target/diskusage.node COPY Release/diskusage.node make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird verlassen > iobroker.js-controller@1.5.14 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first > acme-v2@1.8.6 postinstall /opt/iobroker/node_modules/acme-v2 > node scripts/postinstall Greenlock and ACME.js v3 are on the way! Watch for updates at https://indiegogo.com/at/greenlock + iobroker.js-controller@1.5.14 added 335 packages from 279 contributors and audited 841 packages in 26.74s found 27 vulnerabilities (19 low, 8 high) run `npm audit fix` to fix them, or `npm audit` for details svenilee@Gotham-City:/opt/iobroker$soll ich run
npm audit fixto fix them, ornpm auditfor details ausführen?@sveni_lee sagte in [How-to] Node.js für ioBroker richtig updaten:
soll ich run npm audit fix to fix them, or npm audit for details ausführen?
NEIN!
-
jetzt ging es schon mal weiter.
svenilee@Gotham-City:/opt/iobroker$ npm i iobroker.js-controller --production --force npm WARN using --force I sure hope you know what you are doing. npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3 > iobroker.js-controller@1.5.14 preinstall /opt/iobroker/node_modules/iobroker.js-controller > node lib/preinstallCheck.js NPM version: 6.11.3 npm version >= 5: disabling package-lock > ursa-optional@0.9.10 install /opt/iobroker/node_modules/ursa-optional > node rebuild.js > diskusage@1.1.3 install /opt/iobroker/node_modules/diskusage > node-gyp rebuild make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird betreten CXX(target) Release/obj.target/diskusage/src/main.o CXX(target) Release/obj.target/diskusage/src/diskusage_posix.o SOLINK_MODULE(target) Release/obj.target/diskusage.node COPY Release/diskusage.node make: Verzeichnis „/opt/iobroker/node_modules/diskusage/build“ wird verlassen > iobroker.js-controller@1.5.14 install /opt/iobroker/node_modules/iobroker.js-controller > node iobroker.js setup first > acme-v2@1.8.6 postinstall /opt/iobroker/node_modules/acme-v2 > node scripts/postinstall Greenlock and ACME.js v3 are on the way! Watch for updates at https://indiegogo.com/at/greenlock + iobroker.js-controller@1.5.14 added 335 packages from 279 contributors and audited 841 packages in 26.74s found 27 vulnerabilities (19 low, 8 high) run `npm audit fix` to fix them, or `npm audit` for details svenilee@Gotham-City:/opt/iobroker$soll ich run
npm audit fixto fix them, ornpm auditfor details ausführen?@sveni_lee Alles gut, so geht es. Wie @AlCalzone geschrieben hat: nix weiter ausführen
-
@sveni_lee Alles gut, so geht es. Wie @AlCalzone geschrieben hat: nix weiter ausführen
etwas spät aber immerhin... es läuft ja wieder.
aber irgendwas stimt bei meiner installation nicht.
Jetzt habe ich Probleme mit JS-scripten
"cannot find modul 'request'" steht da zum Beispiel. Das habe ich bei
request, fs und dateformat. -
@apollon77 Danke für die Anleitung. Wollte mein Node.js von 8.14.0 auf 18.16.2 updaten (raspi3+). Bin am Punkt iobroker stop gescheitert.
iobroker controller daemon is not runningEs läuft aber noch alles in VIS und Admin. Dann versuchte ich mit sudo kill -9 <ProzessID> einzeln zu löschen. Funktioniert einzeln auch, mußte dann aber feststellen, dass nach und nach wieder alle Prozesse mit neuer PID da waren????
Was mache ich falsch? -
@apollon77 Danke für die Anleitung. Wollte mein Node.js von 8.14.0 auf 18.16.2 updaten (raspi3+). Bin am Punkt iobroker stop gescheitert.
iobroker controller daemon is not runningEs läuft aber noch alles in VIS und Admin. Dann versuchte ich mit sudo kill -9 <ProzessID> einzeln zu löschen. Funktioniert einzeln auch, mußte dann aber feststellen, dass nach und nach wieder alle Prozesse mit neuer PID da waren????
Was mache ich falsch? -
@apollon77 Danke für die Anleitung. Wollte mein Node.js von 8.14.0 auf 18.16.2 updaten (raspi3+). Bin am Punkt iobroker stop gescheitert.
iobroker controller daemon is not runningEs läuft aber noch alles in VIS und Admin. Dann versuchte ich mit sudo kill -9 <ProzessID> einzeln zu löschen. Funktioniert einzeln auch, mußte dann aber feststellen, dass nach und nach wieder alle Prozesse mit neuer PID da waren????
Was mache ich falsch? -
@apollon77 Danke hat funktioniert. Hier nochmal die Zusammenfassung:
Für das Kommando werden root-Rechte gebrauchtsudo -s systemctl stop iobroker ps -ef|grep io curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash node -v nodejs -vWollte erst ... setup_8.16.2 eingeben. Findet er aber nicht, nimmt mit "x" aber die gewünschte aktuellste Version.
-
ich wollte nun auch node.js aktualisieren, was soweit auch klappte. als ich dann aber "npm rebuild" in cd /opt/iobroker ausgeführt habe, kam dies zum schluss. bin bis hier nach der anleitung hier aus dem forum vorgegangen.
gyp ERR! clean error gyp ERR! stack Error: EACCES: permission denied, rmdir 'build' gyp ERR! System Linux 4.9.59-v7+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy p/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/ursa gyp ERR! node -v v10.17.0 gyp ERR! node-gyp -v v5.0.3 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! ursa@0.9.4 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ursa@0.9.4 install script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-11-30T17_15_22_906Z-debug.logkann mir da einer von euch weiterhelfen? oder kann man dies ignorieren, wahrscheinlich nicht oder?
-
ich wollte nun auch node.js aktualisieren, was soweit auch klappte. als ich dann aber "npm rebuild" in cd /opt/iobroker ausgeführt habe, kam dies zum schluss. bin bis hier nach der anleitung hier aus dem forum vorgegangen.
gyp ERR! clean error gyp ERR! stack Error: EACCES: permission denied, rmdir 'build' gyp ERR! System Linux 4.9.59-v7+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy p/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/ursa gyp ERR! node -v v10.17.0 gyp ERR! node-gyp -v v5.0.3 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! ursa@0.9.4 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ursa@0.9.4 install script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-11-30T17_15_22_906Z-debug.logkann mir da einer von euch weiterhelfen? oder kann man dies ignorieren, wahrscheinlich nicht oder?
-
@apollon77 den installationsfixer habe ich davor ausgeführt
-
@apollon77 den installationsfixer habe ich davor ausgeführt
@maik150 sagte in [How-to] Node.js für ioBroker richtig updaten:
@apollon77 den installationsfixer habe ich davor ausgeführt
node-gyp -v v5.0.3 ?
-
@maik150 sagte in [How-to] Node.js für ioBroker richtig updaten:
@apollon77 den installationsfixer habe ich davor ausgeführt
node-gyp -v v5.0.3 ?
-
@maik150 sagte in [How-to] Node.js für ioBroker richtig updaten:
@sigi234 keine ahnung, was sagt dieser wert aus?
Was kommt bei:
cd /opt/iobroker
iobroker list instances
node -v
nodejs -v
npm -v -
@maik150 sagte in [How-to] Node.js für ioBroker richtig updaten:
@sigi234 keine ahnung, was sagt dieser wert aus?
Was kommt bei:
cd /opt/iobroker
iobroker list instances
node -v
nodejs -v
npm -vroot@raspberrypi2:/opt/iobroker# iobroker list instances system.adapter.admin.0 : admin - enabled, port: 8081, bind: 0.0.0.0, run as: admin system.adapter.cloud.0 : cloud - enabled system.adapter.discovery.0 : discovery - enabled system.adapter.hm-rega.0 : hm-rega - enabled system.adapter.hm-rpc.0 : hm-rpc - enabled, port: 0 system.adapter.info.0 : info - enabled system.adapter.samsung.0 : samsung - disabled root@raspberrypi2:/opt/iobroker#node -v
v10.17.0nodejs -v
v10.17.0npm -v
v6.11.3 -
ich führe alles als root user aus nicht als pi user, falls das vielleicht wichtig ist?
und der installationsfixer muss der im iobroker ordner ausgeführt werden?
-
-
ich führe alles als root user aus nicht als pi user, falls das vielleicht wichtig ist?
und der installationsfixer muss der im iobroker ordner ausgeführt werden?
-
ich wollte nun auch node.js aktualisieren, was soweit auch klappte. als ich dann aber "npm rebuild" in cd /opt/iobroker ausgeführt habe, kam dies zum schluss. bin bis hier nach der anleitung hier aus dem forum vorgegangen.
gyp ERR! clean error gyp ERR! stack Error: EACCES: permission denied, rmdir 'build' gyp ERR! System Linux 4.9.59-v7+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy p/bin/node-gyp.js" "rebuild" gyp ERR! cwd /opt/iobroker/node_modules/ursa gyp ERR! node -v v10.17.0 gyp ERR! node-gyp -v v5.0.3 gyp ERR! not ok npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! ursa@0.9.4 install: `node-gyp rebuild` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the ursa@0.9.4 install script. npm ERR! This is probably not a problem with npm. There is likely additional log ging output above. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2019-11-30T17_15_22_906Z-debug.logkann mir da einer von euch weiterhelfen? oder kann man dies ignorieren, wahrscheinlich nicht oder?
@maik150 sagte in [How-to] Node.js für ioBroker richtig updaten:
permission denied, rmdir 'build'
Wenn du root bist und ioBroker gestoppt hast, dürfte das gar nicht passieren. Bist du 100% sicher, dass nicht doch noch ein ioBroker-Prozess läuft?
-
@maik150 sagte in [How-to] Node.js für ioBroker richtig updaten:
permission denied, rmdir 'build'
Wenn du root bist und ioBroker gestoppt hast, dürfte das gar nicht passieren. Bist du 100% sicher, dass nicht doch noch ein ioBroker-Prozess läuft?
@AlCalzone so sieht es aus wenn ich den iobroker stoppe.
root@raspberrypi2:/opt/iobroker# iobroker stop root@raspberrypi2:/opt/iobroker# ps auxww|grep io root 9 0.0 0.0 0 0 ? S 00:39 0:00 [migration/0] root 13 0.0 0.0 0 0 ? S 00:39 0:00 [migration/1] root 18 0.0 0.0 0 0 ? S 00:39 0:00 [migration/2] root 23 0.0 0.0 0 0 ? S 00:39 0:00 [migration/3] root 34 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 38 0.0 0.0 0 0 ? S< 00:39 0:00 [rpciod] root 39 0.0 0.0 0 0 ? S< 00:39 0:00 [xprtiod] root 42 0.0 0.0 0 0 ? S< 00:39 0:00 [nfsiod] root 53 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 54 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 55 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 56 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 57 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 58 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 59 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 60 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 61 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 62 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 63 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 64 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 65 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 66 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 67 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 68 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 69 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 70 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 71 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 72 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 73 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 74 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 75 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 76 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] root 80 0.0 0.0 0 0 ? S< 00:39 0:00 [DWC Notificatio] root 88 0.0 0.0 0 0 ? S< 00:39 0:00 [bioset] message+ 277 0.0 0.3 6588 3600 ? Ss 00:39 0:00 /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation root 499 0.0 0.8 32184 7744 ? Sl 00:39 0:00 lightdm --session-child 14 17 pi 515 0.0 1.3 52832 13112 ? Ssl 00:39 0:00 /usr/bin/lxsession -s LXDE-pi -e LXDE pi 524 0.0 0.3 6512 3036 ? Ss 00:39 0:00 /usr/bin/dbus-daemon --session --address=systemd: --nofork --nopidfile --systemd-activation pi 590 0.0 0.0 3792 232 ? Ss 00:39 0:00 /usr/bin/ssh-agent x-session-manager root 2137 0.0 0.0 4372 532 pts/0 S+ 13:53 0:00 grep ioich muss dazu sagen mein iobroker läuft so ansich und es werden auch alle versionsnummern richtig angezeigt, sei es jetzt node oder js-controller. aber mein eigentliches problem mit meiner alexa besteht leider weiterhin, aber das gehört hier glaube ich nicht hin oder?
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden
