Poblem beim Updaten von FHEM Connector for alexa

Begonnen von rlehnert, 11 März 2020, 22:28:18

Vorheriges Thema - Nächstes Thema

rlehnert

Hallo Zusammen,

ich versuche gerade nach dieser Anleitung mein alexa-fhem zu updaten:
https://wiki.fhem.de/wiki/FHEM_Connector_f%C3%BCr_Amazon_Alexa .
Aktuell ist bei mir die Version 0.5.26 installiert.

Da das Update nicht durchlief habe ich, wie in der Anleitung beschrieben, versucht die neue Version mit sudo npm install -g alexa-fhem über die alte Version drüber zu installieren. Aber auch dies schlägt fehl.
Das Installation Log hänge ich dem Post an.
Vielleicht kann mir einer von euch hier weiterhelfen.

Viele Grüße
Rolf

justme1968

ich denke du hast ein rechte problem. sudo vergessen ?

es wäre hilfreich wenn du genau postest was du eingeben hast. nicht noch mal tippen sonder per copy&paste in einen code block.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

rlehnert

Danke für Deine Antwort.
Sudo hatte ich benutzt, ich habe mal ein Video auf meinen Server hochgeladen das meine Eingaben zeigt.
http://ds.lehnert-online.de/alexa-fhem-update.mp4

Beim ersten Mal, bevor ich den Post geschrieben habe, hatte auch das Update einen Fehler gemeldet.
Jetzt scheint es durch zulaufen, es wird aber kein Update installiert.
Das install wirft aber noch immer den Fehler, zu dem ich das Log hochgeladen hatte.

Viele Grüße
Rolf

justme1968

ich möchte weder ein video noch irgendwelchen anderen files runterladen sondern nur deine eingaben und die ausgaben und fehlermeldungen per cops&paste in eine code block.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

rlehnert

Sorry, war nicht böse gemeint  :-[

Also zunächst versuchte ich das Update auszuführen.
Beim ersten Mal, bevor ich den Post angelegt habe, kam da noch eine Fehlermeldung.
Jetzt sieht es so aus:

Web-Interface:
set alexa stop

Shell:
pi@PC-RaspBerry-3:~ $ sudo npm update -g alexa-fhem
(node:8996) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
pi@PC-RaspBerry-3:~ $


Wenn ich dann aus FHEM Alexa wieder starte, ist die Version unverändert.
Deshalb versuchte ich ein Install:

Web-Interface:
set alexa stop

Shell:
pi@PC-RaspBerry-3:~ $ sudo npm install -g alexa-fhem
(node:9019) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/alexa-fhem/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert'
npm ERR! error rolling back  alexa-fhem@0.5.50 { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/alexa-fhem/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert'
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/usr/local/lib/node_modules/alexa-fhem/node_modules/chalk/node_modules/ansi-styles/node_modules/color-convert' }
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.14.98+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "alexa-fhem"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm WARN optional dep failed, continuing ws@6.2.1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0
pi@PC-RaspBerry-3:~ $


Das in der Meldung angesprochene Log habe ich im ersten Post angehängt.

Viele Grüße
Rolf


justme1968

lösch /usr/local/lib/node_modules/alexa-fhem komplett und installiere noch mal.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

rlehnert

Hat leider nichts gebracht.
Ich habe daraufhin alle Verzeichnisse mit Namen alexa-fhem gesucht und gelöscht.
Dann nodejs und npm deinstalliert, PI neu gestartet und beides neu installiert.

npm install -g alexa-fhem bringt aber noch immer den gleichen Fehler.

justme1968

zumindest erst in dem beitrag fehlt wieder das sudo. es hatte einen grund warum ich oben von copy&paste geschrieben habe.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

Muk.s

#8
Bei mir gibt es ähnliche Probleme:


pi@SmartHome:~ $ sudo npm install -g alexa-fhem
(node:29418) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.19.66-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "alexa-fhem"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm WARN optional dep failed, continuing ws@6.2.1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0
pi@SmartHome:~ $



pi@SmartHome:~ $ sudo npm install -g alexa-fhem
(node:970) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! tar.unpack untar error /root/.npm/ansi-styles/3.2.1/package.tgz
npm ERR! tar.unpack untar error /root/.npm/supports-color/5.5.0/package.tgz
npm ERR! tar.unpack untar error /root/.npm/escape-string-regexp/1.0.5/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/alexa-fhem/node_modules/ws/node_modules'
npm ERR! error rolling back  alexa-fhem@0.5.51 { Error: ENOTEMPTY: directory not empty, rmdir '/usr/local/lib/node_modules/alexa-fhem/node_modules/ws/node_modules'
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/usr/local/lib/node_modules/alexa-fhem/node_modules/ws/node_modules' }
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.19.66-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "alexa-fhem"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm WARN optional dep failed, continuing ws@6.2.1
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0
pi@SmartHome:~ $




pi@SmartHome:~ $ sudo npm install -g alexa-fhem
(node:3754) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.19.66-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "alexa-fhem"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0
pi@SmartHome:~ $



Löschen von /usr/local/lib/node_modules/alexa-fhem und Neuinstallation hat auch nichts gebracht

Nachtrag: Möglicherweise hängt das Problem mit der neueren alexa-fhem Version zusammen. Die Version 0.5.48 ließ sich installieren, die 0.5.49 hingegen schon nicht mehr.

/Micha

piet_pit

Hallo Zusammen,

ich habe ebenfalls ein Problem beim Update von alexa-fhem. Ich wollte ein Update von der Version von 0.5.48 auf die aktuelle Version machen. Leider klappt sowohl der Update als auch der Install Weg aus dem Wiki nicht.

Ein Rechteproblem vermute ich nicht, denn ich habe auf diesem im Wiki beschriebenen Weg schon mehrfach ein Update gemacht, hat bisher immer einwandfrei geklappt.

Hier die Fehlermeldung:


pi@FHEM_2:~ $ sudo npm install -g alexa-fhem
(node:3479) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
npm ERR! Error: Method Not Allowed
npm ERR!     at errorResponse (/usr/share/npm/lib/cache/add-named.js:260:10)
npm ERR!     at /usr/share/npm/lib/cache/add-named.js:203:12
npm ERR!     at saved (/usr/share/npm/node_modules/npm-registry-client/lib/get.js:167:7)
npm ERR!     at FSReqWrap.oncomplete (fs.js:135:15)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 4.14.98-v7+
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "-g" "alexa-fhem"
npm ERR! cwd /home/pi
npm ERR! node -v v8.11.1
npm ERR! npm -v 1.4.21
npm ERR! code E405
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR!     /home/pi/npm-debug.log
npm ERR! not ok code 0


Bin mir nicht sicher, ob löschen und Neuinstallation hier zielführend ist...

Kann das Problem an der neuen Version von alexa-fhem liegen? Auf jeden Fall ist alexa gestoppt, hat bisher immer toll geklappt... :)
Danke an dieser Stelle für das tolle Modul...

VG
Pit
FHEM 6.0 auf Raspberry Pi 3, Rasbian-Stretch
FRITZ!Box 7490
HM-Mod-RPI-PCB
JeeLink
CUNO 1.47

justme1968

ich glaube bei euch allen ist das problem eine zu alte npm version.

versucht mal ein sudo npm install -g npm und wenn das funktioniert hat den normalen alexa-fhem update.
hue, tradfri, alexa-fhem, homebridge-fhem, LightScene, readingsGroup, ...

https://github.com/sponsors/justme-1968

piet_pit

Hallo Andre,

vielen Dank für den Tip, das war es, jetzt klappt es wieder einwandfrei :) :)

Vielen Dank und bleib virenfrei... ;D

Pit
FHEM 6.0 auf Raspberry Pi 3, Rasbian-Stretch
FRITZ!Box 7490
HM-Mod-RPI-PCB
JeeLink
CUNO 1.47

markukug

#12
Zitat von: justme1968 am 20 März 2020, 21:10:43
ich glaube bei euch allen ist das problem eine zu alte npm version.

versucht mal ein sudo npm install -g npm und wenn das funktioniert hat den normalen alexa-fhem update.

Das war auch bei mir die Lösung. Danke  :).
Also:

Und jetzt geht es weiter nach https://wiki.fhem.de/wiki/FHEM_Connector_f%C3%BCr_Amazon_Alexa

[Update] ... und das funktioniert auch. Echt super. Einizg beim erneuten Einlesen der Geräte auf https://alexa.amazon.de/spa/index.html#appliances musste ich ein paar Minuten warten.

LG
Markus

fireball

Hi,

ich muss den Fred hier nochmal ausgraben... ich wollte jetzt auch Alex-Fhem mal wieder updaten... und bekomme einen Fehler.
Alexa-Fhem habe ich in Version 0.5.61.

Ich bin auf
pi@raspberrypi:~ $ more /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"

Das OS habe ich auf dem aktuellen Stand.
node Version ist
pi@raspberrypi:~ $ node --version
v10.24.0

Ich habe jetzt versucht der Anleitung zu folgen und auch ein paar Hinweisen im Netz, aber ich bekomme immer wieder diesen Fehler:

pi@raspberrypi:~ $ sudo npm update -g alexa-fhem
npm does not support Node.js v10.24.0
You should probably upgrade to a newer version of node as we
can't make any promises that npm will work with this version.
You can find the latest version at https://nodejs.org/
/usr/local/lib/node_modules/npm/lib/npm.js:32
  #unloaded = false
  ^

SyntaxError: Invalid or unexpected token
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at module.exports (/usr/local/lib/node_modules/npm/lib/cli.js:22:15)
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:2:25)
    at Module._compile (internal/modules/cjs/loader.js:778:30)


Hat jemand noch eine Idee?
VG+Danke

MadMax-FHEM

Buster ist doch nicht aktuell: Bullseye...

Gruß, Joachim
FHEM PI3B+ Bullseye: HM-CFG-USB, 40x HM, ZWave-USB, 13x ZWave, EnOcean-PI, 15x EnOcean, HUE/deCONZ, CO2, ESP-Multisensor, Shelly, alexa-fhem, ...
FHEM PI2 Buster: HM-CFG-USB, 25x HM, ZWave-USB, 4x ZWave, EnOcean-PI, 3x EnOcean, Shelly, ha-bridge, ...
FHEM PI3 Buster (Test)