Skip to content
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Logo
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Diskussion zum HowTo nodejs-Installation und upgrade

NEWS

  • Wartung am 15.11. – Forum ab 22:00 Uhr nicht erreichbar
    BluefoxB
    Bluefox
    11
    2
    194

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    7.9k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    1.7k

Diskussion zum HowTo nodejs-Installation und upgrade

Diskussion zum HowTo nodejs-Installation und upgrade

Scheduled Pinned Locked Moved ioBroker Allgemein
nodejs
844 Posts 91 Posters 232.8k Views 63 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H HGlab

    Hallo Leute,
    ich habe beim Upgrade von NodeJS14 auf NodeJS16 Probleme Adapter zu installieren bzw. upzudaten.
    Fehler (unabhängig vom Adapter) sieht wie folgt aus:

    iobroker upgrade socketio@4.2.0 --debug
    Would you like to reinstall version 4.2.0 of socketio now? [(y)es, (n)o]: y
    Update socketio from @4.2.0 to @4.2.0
    NPM version: 8.15.0
    Installing iobroker.socketio@4.2.0... (System call)
    npm ERR! code ENOTEMPTY
    npm ERR! syscall rename
    npm ERR! path /opt/iobroker/node_modules/ajv
    npm ERR! dest /opt/iobroker/node_modules/.ajv-Kze9IpmC
    npm ERR! errno -39
    npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/ajv' -> '/opt/iobroker/node_modules/.ajv-Kze9IpmC'
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /home/iobroker/.npm/_logs/2022-09-05T10_23_30_998Z-debug-0.log
    host.ioBroker Cannot install iobroker.socketio@4.2.0: 217
    

    Mit NodeJS14 gab es keine Probleme.
    Die Installation sieht jedoch aus meiner Sicht ok aus

    uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
    x86_64
    /usr/bin/nodejs
    /usr/bin/node
    /usr/bin/npm
    v16.17.0
    v16.17.0
    8.15.0
    hglab
    /opt/iobroker/node_modules
    OK:1 http://at.archive.ubuntu.com/ubuntu bionic InRelease
    OK:2 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
    OK:3 http://at.archive.ubuntu.com/ubuntu bionic-updates InRelease
    OK:4 http://at.archive.ubuntu.com/ubuntu bionic-backports InRelease
    OK:5 https://deb.nodesource.com/node_14.x bullseye InRelease
    OK:6 https://deb.nodesource.com/node_16.x bullseye InRelease
    Holen:7 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
    Es wurden 88,7 kB in 1 s geholt (90,8 kB/s).
    Paketlisten werden gelesen... Fertig
    Abhängigkeitsbaum wird aufgebaut.
    Statusinformationen werden eingelesen.... Fertig
    Alle Pakete sind aktuell.
    nodejs:
      Installiert:           16.17.0-deb-1nodesource1
      Installationskandidat: 16.17.0-deb-1nodesource1
      Versionstabelle:
     *** 16.17.0-deb-1nodesource1 500
            500 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages
            100 /var/lib/dpkg/status
         14.20.0-deb-1nodesource1 500
            500 https://deb.nodesource.com/node_14.x bullseye/main amd64 Packages
         8.10.0~dfsg-2ubuntu0.4 500
            500 http://at.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
         8.10.0~dfsg-2ubuntu0.2 500
            500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
         8.10.0~dfsg-2 500
            500 http://at.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
    

    Hab keine Idee woran es liegen kann. Danke für euren Support!

    GlasfaserG Offline
    GlasfaserG Offline
    Glasfaser
    wrote on last edited by
    #324

    @hglab sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

    npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/ajv' -> '/opt/iobroker/node_modules/.ajv-Kze9IpmC'

    https://forum.iobroker.net/topic/57337/fehler-25-bei-adapter-install-update-mit-npm8

    Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

    H 1 Reply Last reply
    0
    • H HGlab

      Hallo Leute,
      ich habe beim Upgrade von NodeJS14 auf NodeJS16 Probleme Adapter zu installieren bzw. upzudaten.
      Fehler (unabhängig vom Adapter) sieht wie folgt aus:

      iobroker upgrade socketio@4.2.0 --debug
      Would you like to reinstall version 4.2.0 of socketio now? [(y)es, (n)o]: y
      Update socketio from @4.2.0 to @4.2.0
      NPM version: 8.15.0
      Installing iobroker.socketio@4.2.0... (System call)
      npm ERR! code ENOTEMPTY
      npm ERR! syscall rename
      npm ERR! path /opt/iobroker/node_modules/ajv
      npm ERR! dest /opt/iobroker/node_modules/.ajv-Kze9IpmC
      npm ERR! errno -39
      npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/ajv' -> '/opt/iobroker/node_modules/.ajv-Kze9IpmC'
      
      npm ERR! A complete log of this run can be found in:
      npm ERR!     /home/iobroker/.npm/_logs/2022-09-05T10_23_30_998Z-debug-0.log
      host.ioBroker Cannot install iobroker.socketio@4.2.0: 217
      

      Mit NodeJS14 gab es keine Probleme.
      Die Installation sieht jedoch aus meiner Sicht ok aus

      uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
      x86_64
      /usr/bin/nodejs
      /usr/bin/node
      /usr/bin/npm
      v16.17.0
      v16.17.0
      8.15.0
      hglab
      /opt/iobroker/node_modules
      OK:1 http://at.archive.ubuntu.com/ubuntu bionic InRelease
      OK:2 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
      OK:3 http://at.archive.ubuntu.com/ubuntu bionic-updates InRelease
      OK:4 http://at.archive.ubuntu.com/ubuntu bionic-backports InRelease
      OK:5 https://deb.nodesource.com/node_14.x bullseye InRelease
      OK:6 https://deb.nodesource.com/node_16.x bullseye InRelease
      Holen:7 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
      Es wurden 88,7 kB in 1 s geholt (90,8 kB/s).
      Paketlisten werden gelesen... Fertig
      Abhängigkeitsbaum wird aufgebaut.
      Statusinformationen werden eingelesen.... Fertig
      Alle Pakete sind aktuell.
      nodejs:
        Installiert:           16.17.0-deb-1nodesource1
        Installationskandidat: 16.17.0-deb-1nodesource1
        Versionstabelle:
       *** 16.17.0-deb-1nodesource1 500
              500 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages
              100 /var/lib/dpkg/status
           14.20.0-deb-1nodesource1 500
              500 https://deb.nodesource.com/node_14.x bullseye/main amd64 Packages
           8.10.0~dfsg-2ubuntu0.4 500
              500 http://at.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
           8.10.0~dfsg-2ubuntu0.2 500
              500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
           8.10.0~dfsg-2 500
              500 http://at.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
      

      Hab keine Idee woran es liegen kann. Danke für euren Support!

      Thomas BraunT Online
      Thomas BraunT Online
      Thomas Braun
      Most Active
      wrote on last edited by Thomas Braun
      #325

      @hglab

      Du fährst aber einen Mix aus ubuntu/bionic und debian/bullseye.
      Stell das richtig!

      Linux-Werkzeugkasten:
      https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
      NodeJS Fixer Skript:
      https://forum.iobroker.net/topic/68035/iob-node-fix-skript
      iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

      H 1 Reply Last reply
      0
      • H HGlab

        Hallo Leute,
        ich habe beim Upgrade von NodeJS14 auf NodeJS16 Probleme Adapter zu installieren bzw. upzudaten.
        Fehler (unabhängig vom Adapter) sieht wie folgt aus:

        iobroker upgrade socketio@4.2.0 --debug
        Would you like to reinstall version 4.2.0 of socketio now? [(y)es, (n)o]: y
        Update socketio from @4.2.0 to @4.2.0
        NPM version: 8.15.0
        Installing iobroker.socketio@4.2.0... (System call)
        npm ERR! code ENOTEMPTY
        npm ERR! syscall rename
        npm ERR! path /opt/iobroker/node_modules/ajv
        npm ERR! dest /opt/iobroker/node_modules/.ajv-Kze9IpmC
        npm ERR! errno -39
        npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/ajv' -> '/opt/iobroker/node_modules/.ajv-Kze9IpmC'
        
        npm ERR! A complete log of this run can be found in:
        npm ERR!     /home/iobroker/.npm/_logs/2022-09-05T10_23_30_998Z-debug-0.log
        host.ioBroker Cannot install iobroker.socketio@4.2.0: 217
        

        Mit NodeJS14 gab es keine Probleme.
        Die Installation sieht jedoch aus meiner Sicht ok aus

        uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
        x86_64
        /usr/bin/nodejs
        /usr/bin/node
        /usr/bin/npm
        v16.17.0
        v16.17.0
        8.15.0
        hglab
        /opt/iobroker/node_modules
        OK:1 http://at.archive.ubuntu.com/ubuntu bionic InRelease
        OK:2 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
        OK:3 http://at.archive.ubuntu.com/ubuntu bionic-updates InRelease
        OK:4 http://at.archive.ubuntu.com/ubuntu bionic-backports InRelease
        OK:5 https://deb.nodesource.com/node_14.x bullseye InRelease
        OK:6 https://deb.nodesource.com/node_16.x bullseye InRelease
        Holen:7 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
        Es wurden 88,7 kB in 1 s geholt (90,8 kB/s).
        Paketlisten werden gelesen... Fertig
        Abhängigkeitsbaum wird aufgebaut.
        Statusinformationen werden eingelesen.... Fertig
        Alle Pakete sind aktuell.
        nodejs:
          Installiert:           16.17.0-deb-1nodesource1
          Installationskandidat: 16.17.0-deb-1nodesource1
          Versionstabelle:
         *** 16.17.0-deb-1nodesource1 500
                500 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages
                100 /var/lib/dpkg/status
             14.20.0-deb-1nodesource1 500
                500 https://deb.nodesource.com/node_14.x bullseye/main amd64 Packages
             8.10.0~dfsg-2ubuntu0.4 500
                500 http://at.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
             8.10.0~dfsg-2ubuntu0.2 500
                500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
             8.10.0~dfsg-2 500
                500 http://at.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
        

        Hab keine Idee woran es liegen kann. Danke für euren Support!

        mcm1957M Offline
        mcm1957M Offline
        mcm1957
        wrote on last edited by
        #326

        @hglab
        Da das Exit 25 Thema derzeit - sowit ich weiß - noch untersucht wird, darf ich dir ein paar Fragen stellen?
        -) Hattest du bei der Installation (Upgrade) irgendwelche Auffälligkeiten. Gab es z.B. Netzwerkprobleme / TCP Resets oder ähnliches?
        -) Hast du ev. in mehreren Sessions irgendwas gemacht während des Upgrades?
        -) War der ioBroker während des Upgrades gestoppt?

        Entwicklung u Betreuung: envertech-pv, hoymiles-ms, ns-client, pid, snmp Adapter;
        Support Repositoryverwaltung.

        Wer Danke sagen will, kann nen Kaffee spendieren: https://paypal.me/mcm1957atiobroker

        LESEN - gute Forenbeitrage

        H 1 Reply Last reply
        0
        • mcm1957M mcm1957

          @hglab
          Da das Exit 25 Thema derzeit - sowit ich weiß - noch untersucht wird, darf ich dir ein paar Fragen stellen?
          -) Hattest du bei der Installation (Upgrade) irgendwelche Auffälligkeiten. Gab es z.B. Netzwerkprobleme / TCP Resets oder ähnliches?
          -) Hast du ev. in mehreren Sessions irgendwas gemacht während des Upgrades?
          -) War der ioBroker während des Upgrades gestoppt?

          H Offline
          H Offline
          HGlab
          wrote on last edited by
          #327

          @mcm57

          -) Hattest du bei der Installation (Upgrade) irgendwelche Auffälligkeiten. Gab es z.B. Netzwerkprobleme / TCP Resets oder ähnliches? --> nein, keine Auffälligkeiten
          -) Hast du ev. in mehreren Sessions irgendwas gemacht während des Upgrades? --> nein
          -) War der ioBroker während des Upgrades gestoppt? --> ja, war gestoppt

          mcm1957M 1 Reply Last reply
          0
          • H HGlab

            @mcm57

            -) Hattest du bei der Installation (Upgrade) irgendwelche Auffälligkeiten. Gab es z.B. Netzwerkprobleme / TCP Resets oder ähnliches? --> nein, keine Auffälligkeiten
            -) Hast du ev. in mehreren Sessions irgendwas gemacht während des Upgrades? --> nein
            -) War der ioBroker während des Upgrades gestoppt? --> ja, war gestoppt

            mcm1957M Offline
            mcm1957M Offline
            mcm1957
            wrote on last edited by
            #328

            @hglab
            Danke

            Entwicklung u Betreuung: envertech-pv, hoymiles-ms, ns-client, pid, snmp Adapter;
            Support Repositoryverwaltung.

            Wer Danke sagen will, kann nen Kaffee spendieren: https://paypal.me/mcm1957atiobroker

            LESEN - gute Forenbeitrage

            1 Reply Last reply
            0
            • Thomas BraunT Thomas Braun

              @hglab

              Du fährst aber einen Mix aus ubuntu/bionic und debian/bullseye.
              Stell das richtig!

              H Offline
              H Offline
              HGlab
              wrote on last edited by
              #329

              @thomas-braun said in Diskussion zum HowTo nodejs-Installation und upgrade:

              bionic

              danke, updated

              #node 16
              deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bionic  main
              deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bionic main
              
              
              Thomas BraunT 1 Reply Last reply
              0
              • GlasfaserG Glasfaser

                @hglab sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/ajv' -> '/opt/iobroker/node_modules/.ajv-Kze9IpmC'

                https://forum.iobroker.net/topic/57337/fehler-25-bei-adapter-install-update-mit-npm8

                H Offline
                H Offline
                HGlab
                wrote on last edited by
                #330

                @glasfaser
                worked! Danke für den raschen Support!

                1 Reply Last reply
                0
                • H HGlab

                  @thomas-braun said in Diskussion zum HowTo nodejs-Installation und upgrade:

                  bionic

                  danke, updated

                  #node 16
                  deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bionic  main
                  deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bionic main
                  
                  
                  Thomas BraunT Online
                  Thomas BraunT Online
                  Thomas Braun
                  Most Active
                  wrote on last edited by
                  #331

                  @hglab

                  Die Quelle für 14 auch angepasst oder hast du die komplett rausgekickt?

                  Linux-Werkzeugkasten:
                  https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                  NodeJS Fixer Skript:
                  https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                  iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                  H mac89mucM 2 Replies Last reply
                  0
                  • Thomas BraunT Thomas Braun

                    @hglab

                    Die Quelle für 14 auch angepasst oder hast du die komplett rausgekickt?

                    H Offline
                    H Offline
                    HGlab
                    wrote on last edited by
                    #332

                    @thomas-braun
                    ebenso angepasst 😉

                    1 Reply Last reply
                    0
                    • Thomas BraunT Thomas Braun

                      @hglab

                      Die Quelle für 14 auch angepasst oder hast du die komplett rausgekickt?

                      mac89mucM Offline
                      mac89mucM Offline
                      mac89muc
                      wrote on last edited by
                      #333

                      @thomas-braun

                      ich habe meinen iobroker auf einem Macmini mit macOS Mojave laufen.
                      Die Installation von iobroker auf einem Mac ist ja eh schon etwas komplizierter, da sich die Installation was Pfade und Benutzer angeht von der linux Installation unterscheiden.
                      Ich habe node aktualisiert auf 16.17.0 inkl. NPM auf 8.15.0 - mittels des entsprechenden Installationspaketes von nodejs.org

                      Im iob wird mir die korrekte Version angezeigt, ebenso wenn ich im Terminal node -v bzw. npm -v eingebe.

                      Der iob läuft auch soweit, allerdings kann ich keine Updates mehr machen - die werden mir unter Adapter oder Info angezeigt, ich kann die Updates durchführen ohne Fehlermeldung allerdings tauchen die dann wieder unter Updates auf.

                      Jetzt habe ich recherchiert, dass das häufig mit einem Node Update bzw. einem falschen Node update zusammenhängt.
                      Da ich ja mit macOS unterwegs bin ist es leider für mich nicht ganz so einfach eine step by step Anleitung dazu zu finden. NPM und Node werden unter macOS z.B. automatisiert unter /usr/local/bin installiert mit dem Installer - wie bekomme ich die an die richtige Stelle - oder ist das Verzeichnis /usr/bin nur für linux Installationen das richtige?

                      Viele Grüße

                      Thomas BraunT 1 Reply Last reply
                      0
                      • mac89mucM mac89muc

                        @thomas-braun

                        ich habe meinen iobroker auf einem Macmini mit macOS Mojave laufen.
                        Die Installation von iobroker auf einem Mac ist ja eh schon etwas komplizierter, da sich die Installation was Pfade und Benutzer angeht von der linux Installation unterscheiden.
                        Ich habe node aktualisiert auf 16.17.0 inkl. NPM auf 8.15.0 - mittels des entsprechenden Installationspaketes von nodejs.org

                        Im iob wird mir die korrekte Version angezeigt, ebenso wenn ich im Terminal node -v bzw. npm -v eingebe.

                        Der iob läuft auch soweit, allerdings kann ich keine Updates mehr machen - die werden mir unter Adapter oder Info angezeigt, ich kann die Updates durchführen ohne Fehlermeldung allerdings tauchen die dann wieder unter Updates auf.

                        Jetzt habe ich recherchiert, dass das häufig mit einem Node Update bzw. einem falschen Node update zusammenhängt.
                        Da ich ja mit macOS unterwegs bin ist es leider für mich nicht ganz so einfach eine step by step Anleitung dazu zu finden. NPM und Node werden unter macOS z.B. automatisiert unter /usr/local/bin installiert mit dem Installer - wie bekomme ich die an die richtige Stelle - oder ist das Verzeichnis /usr/bin nur für linux Installationen das richtige?

                        Viele Grüße

                        Thomas BraunT Online
                        Thomas BraunT Online
                        Thomas Braun
                        Most Active
                        wrote on last edited by
                        #334

                        @mac89muc

                        Ich kenne mich mit Mäc null aus. Aber soweit ich das weiß wird nodejs da unter /usr/local/bin installiert, nur unter (Debian)-Linux ist die Installation dort ein sicheres Zeichen für eine 'krumme Installation', das ordentliche Paket wird dort in /usr/bin entpackt.
                        Ich vermute auch eher, dass du mit diesem 'Phänomen' zu tun haben könntest:

                        https://forum.iobroker.net/topic/57337/fehler-25-bei-adapter-install-update-mit-npm8

                        Ob der dort genannte Konsoleneinzeiler aber auf Macs funktioniert? Keine Ahnung...

                        Linux-Werkzeugkasten:
                        https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                        NodeJS Fixer Skript:
                        https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                        iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                        mac89mucM 2 Replies Last reply
                        0
                        • Thomas BraunT Thomas Braun

                          @mac89muc

                          Ich kenne mich mit Mäc null aus. Aber soweit ich das weiß wird nodejs da unter /usr/local/bin installiert, nur unter (Debian)-Linux ist die Installation dort ein sicheres Zeichen für eine 'krumme Installation', das ordentliche Paket wird dort in /usr/bin entpackt.
                          Ich vermute auch eher, dass du mit diesem 'Phänomen' zu tun haben könntest:

                          https://forum.iobroker.net/topic/57337/fehler-25-bei-adapter-install-update-mit-npm8

                          Ob der dort genannte Konsoleneinzeiler aber auf Macs funktioniert? Keine Ahnung...

                          mac89mucM Offline
                          mac89mucM Offline
                          mac89muc
                          wrote on last edited by mac89muc
                          #335

                          @thomas-braun

                          Danke für die schnelle Antwort.

                          Habe meine Github Adapter alle mal entfernt nachdem ich gelesen habe, dass die u.U. Probleme machen können beim Node Update. Die Updates der updatefähigen regulären Adapter habe ich dann über das Terminal angestossen - jetzt hat es geklappt - installiere mir die Github Adapter jetzt wieder und dann mal sehen.

                          Gruß

                          1 Reply Last reply
                          0
                          • Thomas BraunT Thomas Braun

                            @mac89muc

                            Ich kenne mich mit Mäc null aus. Aber soweit ich das weiß wird nodejs da unter /usr/local/bin installiert, nur unter (Debian)-Linux ist die Installation dort ein sicheres Zeichen für eine 'krumme Installation', das ordentliche Paket wird dort in /usr/bin entpackt.
                            Ich vermute auch eher, dass du mit diesem 'Phänomen' zu tun haben könntest:

                            https://forum.iobroker.net/topic/57337/fehler-25-bei-adapter-install-update-mit-npm8

                            Ob der dort genannte Konsoleneinzeiler aber auf Macs funktioniert? Keine Ahnung...

                            mac89mucM Offline
                            mac89mucM Offline
                            mac89muc
                            wrote on last edited by
                            #336

                            @thomas-braun

                            Jetzt habe ich tatsächlich bei der Installation des esphome Git Adapters den Fehler 25.

                            $ iobroker url https://github.com/DrozmotiX/ioBroker.esphome.git --host smarthome.fritz.box --debug
                            install DrozmotiX/ioBroker.esphome#b6adb149202b81607fe1d726bbe7ffa6717d2352
                            Installing DrozmotiX/ioBroker.esphome#b6adb149202b81607fe1d726bbe7ffa6717d2352... (System call)
                            host.smarthome.fritz.box Cannot install DrozmotiX/ioBroker.esphome#b6adb149202b81607fe1d726bbe7ffa6717d2352: 1
                            ERROR: Process exited with code 25
                            

                            Der Einzeiler angepasst auf den macOS Pfad (/usr/local/...)

                            cd /usr/local/iobroker/node_modules && for i in $(find -type d -iname ".*-*"); do echo ${i%%/}; done
                            

                            hilft nicht - kommt find: illegal option -- t

                            Ist das die Thematik, oder ggf. was ganz anderes - hast Du evtl. sonst noch einen Tipp?
                            Bräuchte den esphome Adapter wieder ..

                            Danke & Gruß

                            Thomas BraunT 1 Reply Last reply
                            0
                            • mac89mucM mac89muc

                              @thomas-braun

                              Jetzt habe ich tatsächlich bei der Installation des esphome Git Adapters den Fehler 25.

                              $ iobroker url https://github.com/DrozmotiX/ioBroker.esphome.git --host smarthome.fritz.box --debug
                              install DrozmotiX/ioBroker.esphome#b6adb149202b81607fe1d726bbe7ffa6717d2352
                              Installing DrozmotiX/ioBroker.esphome#b6adb149202b81607fe1d726bbe7ffa6717d2352... (System call)
                              host.smarthome.fritz.box Cannot install DrozmotiX/ioBroker.esphome#b6adb149202b81607fe1d726bbe7ffa6717d2352: 1
                              ERROR: Process exited with code 25
                              

                              Der Einzeiler angepasst auf den macOS Pfad (/usr/local/...)

                              cd /usr/local/iobroker/node_modules && for i in $(find -type d -iname ".*-*"); do echo ${i%%/}; done
                              

                              hilft nicht - kommt find: illegal option -- t

                              Ist das die Thematik, oder ggf. was ganz anderes - hast Du evtl. sonst noch einen Tipp?
                              Bräuchte den esphome Adapter wieder ..

                              Danke & Gruß

                              Thomas BraunT Online
                              Thomas BraunT Online
                              Thomas Braun
                              Most Active
                              wrote on last edited by
                              #337

                              @mac89muc sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                              illegal option -- t

                              Dann must du mal schauen, wie beim MÄC find die Optionen lauten.
                              -type d steht für ein Verzeichnis.
                              -iname für den Namen, unabhängig von Groß/Kleinschreibung

                              Linux-Werkzeugkasten:
                              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                              NodeJS Fixer Skript:
                              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                              mac89mucM 1 Reply Last reply
                              0
                              • Thomas BraunT Thomas Braun

                                @mac89muc sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                                illegal option -- t

                                Dann must du mal schauen, wie beim MÄC find die Optionen lauten.
                                -type d steht für ein Verzeichnis.
                                -iname für den Namen, unabhängig von Groß/Kleinschreibung

                                mac89mucM Offline
                                mac89mucM Offline
                                mac89muc
                                wrote on last edited by
                                #338

                                @thomas-braun

                                jetzt ist mein Latein am Ende - bin nicht so in der Kommandozeilenthematik ...

                                Hilft das hier weiter??

                                usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
                                       find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
                                
                                
                                S R 2 Replies Last reply
                                0
                                • mac89mucM mac89muc

                                  @thomas-braun

                                  jetzt ist mein Latein am Ende - bin nicht so in der Kommandozeilenthematik ...

                                  Hilft das hier weiter??

                                  usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
                                         find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
                                  
                                  
                                  S Offline
                                  S Offline
                                  sticks
                                  wrote on last edited by sticks
                                  #339

                                  Hi, ich betreibe iobroker v6.2.20 auf einem Raspberry 4, Node.js: v16.17.0 und NPM: v8.15.0.
                                  Alles läuft einwandfrei, aber genau wie mac89muc kriege ich den ESPHOME-Adapter nicht installiert, Fehler 25.
                                  Also liegt es wohl nicht direkt an deiner MAC-Installation. (Den "Thomas Braun"-Einzeiler zum "Reste löschen" in node_modules hatte ich bei mir auch schon ohne Besserung durchlaufen lassen)

                                  Bis auf das ich den ESPHOME Adapter in meinem iobroker nicht installiert bekomme sind bei mir sonst keinerlei Probleme feststellbar.
                                  Bei Github bei den ESPHOME Issues findet man aber auch andere Betroffene, also Problem ist wohl bekannt. 😉

                                  Install-Log ESPHOME-Adapter:

                                  $ iobroker add esphome auto --host iobrokerpi --debug
                                  
                                  NPM version: 8.15.0
                                  
                                  Installing iobroker.esphome@0.2.4... (System call)
                                  
                                  npm ERR! code 1
                                  
                                  npm ERR! path /opt/iobroker/node_modules/iobroker.esphomenpm ERR! command failednpm ERR! command sh /tmp/install-fbbfef95.shnpm ERR! No python_modules directory; installing pip locally if needed.npm ERR! Successfully completed pip check.npm ERR! Collecting esphome>=2021.8npm ERR! Using cached esphome-2022.8.3-py2.py3-none-any.whl (2.3 MB)npm ERR! Collecting tornado>=3.2npm ERR! Using cached tornado-6.2.tar.gz (504 kB)npm ERR! Installing build dependencies: startednpm ERR! Installing build dependencies: finished with status 'done'npm ERR! Getting requirements to build wheel: startednpm ERR! Getting requirements to build wheel: finished with status 'done'npm ERR! Preparing metadata (pyproject.toml): startednpm ERR! Preparing metadata (pyproject.toml): finished with status 'done'npm ERR! Collecting tzdata>=2021.1npm ERR! Using cached tzdata-2022.2-py2.py3-none-any.whl (336 kB)npm ERR! Collecting PyYAML==6.0npm ERR! Using cached PyYAML-6.0.tar.gz (124 kB)npm ERR! Installing build dependencies: startednpm ERR! Installing build dependencies: finished with status 'done'npm ERR! Getting requirements to build wheel: startednpm ERR! Getting requirements to build wheel: finished with status 'done'npm ERR! Preparing metadata (pyproject.toml): startednpm ERR! Preparing metadata (pyproject.toml): finished with status 'done'npm ERR! Collecting platformio==6.0.2npm ERR! Using cached platformio-6.0.2.tar.gz (245 kB)npm ERR! Preparing metadata (setup.py): startednpm ERR! Preparing metadata (setup.py): finished with status 'done'npm ERR! Collecting pyserial==3.5npm ERR! Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)npm ERR! Collecting voluptuous==0.13.1npm ERR! Using cached voluptuous-0.13.1-py3-none-any.whl (29 kB)npm ERR! Collecting aioesphomeapi==10.11.0npm ERR! Using cached aioesphomeapi-10.11.0-py2.py3-none-any.whl (51 kB)npm ERR! Collecting zeroconf==0.39.0npm ERR! Using cached zeroconf-0.39.0-py3-none-any.whl (106 kB)npm ERR! Collecting tzlocal==4.2npm ERR! Using cached tzlocal-4.2-py3-none-any.whl (19 kB)npm ERR! Collecting kconfiglib==13.7.1npm ERR! Using cached kconfiglib-13.7.1-py2.py3-none-any.whl (145 kB)npm ERR! Collecting esptool==3.3.1npm ERR! Using cached esptool-3.3.1.tar.gz (213 kB)npm ERR! Preparing metadata (setup.py): startednpm ERR! Preparing metadata (setup.py): finished with status 'done'npm ERR! Collecting paho-mqtt==1.6.1npm ERR! Using cached paho-mqtt-1.6.1.tar.gz (99 kB)npm ERR! Preparing metadata (setup.py): startednpm ERR! Preparing metadata (setup.py): finished with status 'done'npm ERR! Collecting tornado>=3.2npm ERR! Using cached tornado-6.1.tar.gz (497 kB)npm ERR! Preparing metadata (setup.py): startednpm ERR! Preparing metadata (setup.py): finished with status 'done'npm ERR! Collecting esphome-dashboard==20220508.0npm ERR! Using cached esphome_dashboard-20220508.0-py3-none-any.whl (601 kB)npm ERR! Collecting click==8.1.3npm ERR! Using cached click-8.1.3-py3-none-any.whl (96 kB)npm ERR! Collecting colorama==0.4.5npm ERR! Using cached colorama-0.4.5-py2.py3-none-any.whl (16 kB)npm ERR! Collecting noiseprotocol<1.0,>=0.3.1npm ERR! Using cached noiseprotocol-0.3.1-py3-none-any.whl (20 kB)npm ERR! Collecting protobuf<4.0,>=3.12.2npm ERR! Downloading protobuf-3.20.2-py2.py3-none-any.whl (162 kB)npm ERR! ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.1/162.1 kB 835.1 kB/s eta 0:00:00npm ERR! Collecting bitstring>=3.1.6npm ERR! Using cached bitstring-3.1.9-py3-none-any.whl (38 kB)npm ERR! Collecting cryptography>=2.1.4npm ERR! Using cached cryptography-38.0.1.tar.gz (599 kB)npm ERR! Installing build dependencies: startednpm ERR! Installing build dependencies: finished with status 'error'npm ERR! error: subprocess-exited-with-errornpm ERR! npm ERR! × pip subprocess to install build dependencies did not run successfully.npm ERR! │ exit code: 1npm ERR! ╰─> [126 lines of output]npm ERR! Collecting setuptools!=60.9.0,>=40.6.0npm ERR! Using cached setuptools-65.3.0-py3-none-any.whl (1.2 MB)npm ERR! Collecting wheelnpm ERR! Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)npm ERR! Collecting cffi>=1.12npm ERR! Using cached cffi-1.15.1.tar.gz (508 kB)npm ERR! Preparing metadata (setup.py): startednpm ERR! Preparing metadata (setup.py): finished with status 'done'npm ERR! Collecting setuptools-rust>=0.11.4npm ERR! Using cached setuptools_rust-1.5.1-py3-none-any.whl (23 kB)npm ERR! Collecting pycparsernpm ERR! Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)npm ERR! Collecting semantic-version<3,>=2.8.2npm ERR! Using cached semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)npm ERR! Collecting typing-extensions>=3.7.4.3npm ERR! Using cached typing_extensions-4.3.0-py3-none-any.whl (25 kB)npm ERR! Building wheels for collected packages: cffinpm ERR! Building wheel for cffi (setup.py): startednpm ERR! Building wheel for cffi (setup.py): finished with status 'error'npm ERR! error: subprocess-exited-with-errornpm ERR! npm ERR! × python setup.py bdist_wheel did not run successfully.npm ERR! │ exit code: 1npm ERR! ╰─> [38 lines of output]npm ERR! /opt/iobroker/node_modules/iobroker.esphome/python_modules/lib/python3.9/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.npm ERR! warnings.warn(msg, warning_class)npm ERR! running bdist_wheelnpm ERR! running buildnpm ERR! running build_pynpm ERR! creating buildnpm ERR! creating build/lib.linux-armv7l-cpython-39npm ERR! creating build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/commontypes.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/cparser.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/pkgconfig.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/__init__.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/model.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/verifier.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/recompiler.py -> build/lib.linux-armv7l-cpython-39/cffi
                                  
                                  npm ERR! copying cffi/ffiplatform.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/error.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/vengine_gen.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/lock.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/api.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/_cffi_include.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/parse_c_type.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/_embedding.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! running build_extnpm ERR! building '_cffi_backend' extensionnpm ERR! creating build/temp.linux-armv7l-cpython-39npm ERR! creating build/temp.linux-armv7l-cpython-39/cnpm ERR! arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-armv7l-cpython-39/c/_cffi_backend.onpm ERR! c/_cffi_backend.c:2:10: fatal error: Python.h: No such file or directorynpm ERR! 2 | #include <Python.h>npm ERR! | ^~~~~~~~~~npm ERR! compilation terminated.npm ERR! error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1npm ERR! [end of output]npm ERR! npm ERR! note: This error originates from a subprocess, and is likely not a problem with pip.npm ERR! ERROR: Failed building wheel for cffinpm ERR! Running setup.py clean for cffinpm ERR! Failed to build cffinpm ERR! Installing collected packages: wheel, typing-extensions, setuptools, semantic-version, pycparser, setuptools-rust, cffinpm ERR! Running setup.py install for cffi: startednpm ERR! Running setup.py install for cffi: finished with status 'error'npm ERR! error: subprocess-exited-with-errornpm ERR! npm ERR! × Running setup.py install for cffi did not run successfully.npm ERR! │ exit code: 1npm ERR! ╰─> [40 lines of output]npm ERR! /opt/iobroker/node_modules/iobroker.esphome/python_modules/lib/python3.9/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.npm ERR! warnings.warn(msg, warning_class)npm ERR! running installnpm ERR! /opt/iobroker/node_modules/iobroker.esphome/python_modules/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.npm ERR! warnings.warn(npm ERR! running buildnpm ERR! running build_pynpm ERR! creating buildnpm ERR! creating build/lib.linux-armv7l-cpython-39npm ERR! creating build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/commontypes.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/cparser.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/pkgconfig.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/__init__.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/model.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/verifier.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/recompiler.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/ffiplatform.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/error.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/vengine_gen.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/lock.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/api.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/_cffi_include.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/parse_c_type.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/_embedding.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! running build_extnpm ERR! building '_cffi_backend' extensionnpm ERR! creating build/temp.linux-armv7l-cpython-39npm ERR! creating build/temp.linux-armv7l-cpython-39/cnpm ERR! arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-armv7l-cpython-39/c/_cffi_backend.onpm ERR! c/_cffi_backend.c:2:10: fatal error: Python.h: No such file or directorynpm ERR! 2 | #include <Python.h>npm ERR! | ^~~~~~~~~~npm ERR! compilation terminated.npm ERR! error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1npm ERR! [end of output]npm ERR! npm ERR! note: This error originates from a subprocess, and is likely not a problem with pip.npm ERR! error: legacy-install-failurenpm ERR! npm ERR! × Encountered error while trying to install package.npm ERR! ╰─> cffinpm ERR! npm ERR! note: This is an issue with the package mentioned above, not pip.npm ERR! hint: See above for output from the failure.npm ERR! [end of output]npm ERR! npm ERR! note: This error originates from a subprocess, and is likely not a problem with pip.npm ERR! error: subprocess-exited-with-errornpm ERR! npm ERR! × pip subprocess to install build dependencies did not run successfully.npm ERR! │ exit code: 1npm ERR! ╰─> See above for output.npm ERR! npm ERR! note: This error originates from a subprocess, and is likely not a problem with pip.
                                  
                                  npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2022-09-14T03_36_43_827Z-debug-0.log
                                  
                                  host.iobrokerpi Cannot install iobroker.esphome@0.2.4: 1
                                  
                                  ERROR: Process exited with code 25
                                  
                                  Thomas BraunT 1 Reply Last reply
                                  0
                                  • S sticks

                                    Hi, ich betreibe iobroker v6.2.20 auf einem Raspberry 4, Node.js: v16.17.0 und NPM: v8.15.0.
                                    Alles läuft einwandfrei, aber genau wie mac89muc kriege ich den ESPHOME-Adapter nicht installiert, Fehler 25.
                                    Also liegt es wohl nicht direkt an deiner MAC-Installation. (Den "Thomas Braun"-Einzeiler zum "Reste löschen" in node_modules hatte ich bei mir auch schon ohne Besserung durchlaufen lassen)

                                    Bis auf das ich den ESPHOME Adapter in meinem iobroker nicht installiert bekomme sind bei mir sonst keinerlei Probleme feststellbar.
                                    Bei Github bei den ESPHOME Issues findet man aber auch andere Betroffene, also Problem ist wohl bekannt. 😉

                                    Install-Log ESPHOME-Adapter:

                                    $ iobroker add esphome auto --host iobrokerpi --debug
                                    
                                    NPM version: 8.15.0
                                    
                                    Installing iobroker.esphome@0.2.4... (System call)
                                    
                                    npm ERR! code 1
                                    
                                    npm ERR! path /opt/iobroker/node_modules/iobroker.esphomenpm ERR! command failednpm ERR! command sh /tmp/install-fbbfef95.shnpm ERR! No python_modules directory; installing pip locally if needed.npm ERR! Successfully completed pip check.npm ERR! Collecting esphome>=2021.8npm ERR! Using cached esphome-2022.8.3-py2.py3-none-any.whl (2.3 MB)npm ERR! Collecting tornado>=3.2npm ERR! Using cached tornado-6.2.tar.gz (504 kB)npm ERR! Installing build dependencies: startednpm ERR! Installing build dependencies: finished with status 'done'npm ERR! Getting requirements to build wheel: startednpm ERR! Getting requirements to build wheel: finished with status 'done'npm ERR! Preparing metadata (pyproject.toml): startednpm ERR! Preparing metadata (pyproject.toml): finished with status 'done'npm ERR! Collecting tzdata>=2021.1npm ERR! Using cached tzdata-2022.2-py2.py3-none-any.whl (336 kB)npm ERR! Collecting PyYAML==6.0npm ERR! Using cached PyYAML-6.0.tar.gz (124 kB)npm ERR! Installing build dependencies: startednpm ERR! Installing build dependencies: finished with status 'done'npm ERR! Getting requirements to build wheel: startednpm ERR! Getting requirements to build wheel: finished with status 'done'npm ERR! Preparing metadata (pyproject.toml): startednpm ERR! Preparing metadata (pyproject.toml): finished with status 'done'npm ERR! Collecting platformio==6.0.2npm ERR! Using cached platformio-6.0.2.tar.gz (245 kB)npm ERR! Preparing metadata (setup.py): startednpm ERR! Preparing metadata (setup.py): finished with status 'done'npm ERR! Collecting pyserial==3.5npm ERR! Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)npm ERR! Collecting voluptuous==0.13.1npm ERR! Using cached voluptuous-0.13.1-py3-none-any.whl (29 kB)npm ERR! Collecting aioesphomeapi==10.11.0npm ERR! Using cached aioesphomeapi-10.11.0-py2.py3-none-any.whl (51 kB)npm ERR! Collecting zeroconf==0.39.0npm ERR! Using cached zeroconf-0.39.0-py3-none-any.whl (106 kB)npm ERR! Collecting tzlocal==4.2npm ERR! Using cached tzlocal-4.2-py3-none-any.whl (19 kB)npm ERR! Collecting kconfiglib==13.7.1npm ERR! Using cached kconfiglib-13.7.1-py2.py3-none-any.whl (145 kB)npm ERR! Collecting esptool==3.3.1npm ERR! Using cached esptool-3.3.1.tar.gz (213 kB)npm ERR! Preparing metadata (setup.py): startednpm ERR! Preparing metadata (setup.py): finished with status 'done'npm ERR! Collecting paho-mqtt==1.6.1npm ERR! Using cached paho-mqtt-1.6.1.tar.gz (99 kB)npm ERR! Preparing metadata (setup.py): startednpm ERR! Preparing metadata (setup.py): finished with status 'done'npm ERR! Collecting tornado>=3.2npm ERR! Using cached tornado-6.1.tar.gz (497 kB)npm ERR! Preparing metadata (setup.py): startednpm ERR! Preparing metadata (setup.py): finished with status 'done'npm ERR! Collecting esphome-dashboard==20220508.0npm ERR! Using cached esphome_dashboard-20220508.0-py3-none-any.whl (601 kB)npm ERR! Collecting click==8.1.3npm ERR! Using cached click-8.1.3-py3-none-any.whl (96 kB)npm ERR! Collecting colorama==0.4.5npm ERR! Using cached colorama-0.4.5-py2.py3-none-any.whl (16 kB)npm ERR! Collecting noiseprotocol<1.0,>=0.3.1npm ERR! Using cached noiseprotocol-0.3.1-py3-none-any.whl (20 kB)npm ERR! Collecting protobuf<4.0,>=3.12.2npm ERR! Downloading protobuf-3.20.2-py2.py3-none-any.whl (162 kB)npm ERR! ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 162.1/162.1 kB 835.1 kB/s eta 0:00:00npm ERR! Collecting bitstring>=3.1.6npm ERR! Using cached bitstring-3.1.9-py3-none-any.whl (38 kB)npm ERR! Collecting cryptography>=2.1.4npm ERR! Using cached cryptography-38.0.1.tar.gz (599 kB)npm ERR! Installing build dependencies: startednpm ERR! Installing build dependencies: finished with status 'error'npm ERR! error: subprocess-exited-with-errornpm ERR! npm ERR! × pip subprocess to install build dependencies did not run successfully.npm ERR! │ exit code: 1npm ERR! ╰─> [126 lines of output]npm ERR! Collecting setuptools!=60.9.0,>=40.6.0npm ERR! Using cached setuptools-65.3.0-py3-none-any.whl (1.2 MB)npm ERR! Collecting wheelnpm ERR! Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)npm ERR! Collecting cffi>=1.12npm ERR! Using cached cffi-1.15.1.tar.gz (508 kB)npm ERR! Preparing metadata (setup.py): startednpm ERR! Preparing metadata (setup.py): finished with status 'done'npm ERR! Collecting setuptools-rust>=0.11.4npm ERR! Using cached setuptools_rust-1.5.1-py3-none-any.whl (23 kB)npm ERR! Collecting pycparsernpm ERR! Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)npm ERR! Collecting semantic-version<3,>=2.8.2npm ERR! Using cached semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)npm ERR! Collecting typing-extensions>=3.7.4.3npm ERR! Using cached typing_extensions-4.3.0-py3-none-any.whl (25 kB)npm ERR! Building wheels for collected packages: cffinpm ERR! Building wheel for cffi (setup.py): startednpm ERR! Building wheel for cffi (setup.py): finished with status 'error'npm ERR! error: subprocess-exited-with-errornpm ERR! npm ERR! × python setup.py bdist_wheel did not run successfully.npm ERR! │ exit code: 1npm ERR! ╰─> [38 lines of output]npm ERR! /opt/iobroker/node_modules/iobroker.esphome/python_modules/lib/python3.9/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.npm ERR! warnings.warn(msg, warning_class)npm ERR! running bdist_wheelnpm ERR! running buildnpm ERR! running build_pynpm ERR! creating buildnpm ERR! creating build/lib.linux-armv7l-cpython-39npm ERR! creating build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/commontypes.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/cparser.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/pkgconfig.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/__init__.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/model.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/verifier.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/recompiler.py -> build/lib.linux-armv7l-cpython-39/cffi
                                    
                                    npm ERR! copying cffi/ffiplatform.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/error.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/vengine_gen.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/lock.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/api.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/_cffi_include.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/parse_c_type.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/_embedding.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! running build_extnpm ERR! building '_cffi_backend' extensionnpm ERR! creating build/temp.linux-armv7l-cpython-39npm ERR! creating build/temp.linux-armv7l-cpython-39/cnpm ERR! arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-armv7l-cpython-39/c/_cffi_backend.onpm ERR! c/_cffi_backend.c:2:10: fatal error: Python.h: No such file or directorynpm ERR! 2 | #include <Python.h>npm ERR! | ^~~~~~~~~~npm ERR! compilation terminated.npm ERR! error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1npm ERR! [end of output]npm ERR! npm ERR! note: This error originates from a subprocess, and is likely not a problem with pip.npm ERR! ERROR: Failed building wheel for cffinpm ERR! Running setup.py clean for cffinpm ERR! Failed to build cffinpm ERR! Installing collected packages: wheel, typing-extensions, setuptools, semantic-version, pycparser, setuptools-rust, cffinpm ERR! Running setup.py install for cffi: startednpm ERR! Running setup.py install for cffi: finished with status 'error'npm ERR! error: subprocess-exited-with-errornpm ERR! npm ERR! × Running setup.py install for cffi did not run successfully.npm ERR! │ exit code: 1npm ERR! ╰─> [40 lines of output]npm ERR! /opt/iobroker/node_modules/iobroker.esphome/python_modules/lib/python3.9/site-packages/setuptools/config/setupcfg.py:508: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.npm ERR! warnings.warn(msg, warning_class)npm ERR! running installnpm ERR! /opt/iobroker/node_modules/iobroker.esphome/python_modules/lib/python3.9/site-packages/setuptools/command/install.py:34: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools.npm ERR! warnings.warn(npm ERR! running buildnpm ERR! running build_pynpm ERR! creating buildnpm ERR! creating build/lib.linux-armv7l-cpython-39npm ERR! creating build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/commontypes.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/cparser.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/setuptools_ext.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/pkgconfig.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/__init__.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/model.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/verifier.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/recompiler.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/ffiplatform.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/error.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/vengine_cpy.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/backend_ctypes.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/vengine_gen.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/lock.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/cffi_opcode.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/api.py -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/_cffi_include.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/parse_c_type.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/_embedding.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! copying cffi/_cffi_errors.h -> build/lib.linux-armv7l-cpython-39/cffinpm ERR! running build_extnpm ERR! building '_cffi_backend' extensionnpm ERR! creating build/temp.linux-armv7l-cpython-39npm ERR! creating build/temp.linux-armv7l-cpython-39/cnpm ERR! arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DFFI_BUILDING=1 -DUSE__THREAD -DHAVE_SYNC_SYNCHRONIZE -I/usr/include/python3.9 -c c/_cffi_backend.c -o build/temp.linux-armv7l-cpython-39/c/_cffi_backend.onpm ERR! c/_cffi_backend.c:2:10: fatal error: Python.h: No such file or directorynpm ERR! 2 | #include <Python.h>npm ERR! | ^~~~~~~~~~npm ERR! compilation terminated.npm ERR! error: command '/usr/bin/arm-linux-gnueabihf-gcc' failed with exit code 1npm ERR! [end of output]npm ERR! npm ERR! note: This error originates from a subprocess, and is likely not a problem with pip.npm ERR! error: legacy-install-failurenpm ERR! npm ERR! × Encountered error while trying to install package.npm ERR! ╰─> cffinpm ERR! npm ERR! note: This is an issue with the package mentioned above, not pip.npm ERR! hint: See above for output from the failure.npm ERR! [end of output]npm ERR! npm ERR! note: This error originates from a subprocess, and is likely not a problem with pip.npm ERR! error: subprocess-exited-with-errornpm ERR! npm ERR! × pip subprocess to install build dependencies did not run successfully.npm ERR! │ exit code: 1npm ERR! ╰─> See above for output.npm ERR! npm ERR! note: This error originates from a subprocess, and is likely not a problem with pip.
                                    
                                    npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2022-09-14T03_36_43_827Z-debug-0.log
                                    
                                    host.iobrokerpi Cannot install iobroker.esphome@0.2.4: 1
                                    
                                    ERROR: Process exited with code 25
                                    
                                    Thomas BraunT Online
                                    Thomas BraunT Online
                                    Thomas Braun
                                    Most Active
                                    wrote on last edited by Thomas Braun
                                    #340

                                    @sticks

                                    Bei dir fehlen build header.
                                    Da dürfte irgendein python-dev Paket fehlen. Kann dir das aber gerade nicht raussuchen, am Handy ist das doof.

                                    Edit: Installier mal python3-cffi-backend nach.

                                    Linux-Werkzeugkasten:
                                    https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                    NodeJS Fixer Skript:
                                    https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                    iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                    S 1 Reply Last reply
                                    0
                                    • mac89mucM mac89muc

                                      @thomas-braun

                                      jetzt ist mein Latein am Ende - bin nicht so in der Kommandozeilenthematik ...

                                      Hilft das hier weiter??

                                      usage: find [-H | -L | -P] [-EXdsx] [-f path] path ... [expression]
                                             find [-H | -L | -P] [-EXdsx] -f path [path ...] [expression]
                                      
                                      
                                      R Offline
                                      R Offline
                                      reutli
                                      wrote on last edited by reutli
                                      #341

                                      @mac89muc

                                      Schau mal hier: https://stackoverflow.com/questions/17548854/difference-between-mac-find-and-linux-find
                                      Verzeichnis muss am Mac mit dazu.

                                      Konkret müsste am Mac also der funktionieren

                                      cd /usr/local/iobroker/node_modules && for i in $(find ./ -type d -iname ".*-*"); do echo ${i%%/}; done
                                      

                                      und dann natürlich adaptieren an den Einzeiler von @Thomas-Braun (also auch löschen 😁

                                      BITTE BEACHTET DOCH DAS: https://forum.iobroker.net/topic/51555/hinweise-für-gute-forenbeiträge
                                      iobroker in Debian-VM auf Proxmox Server (Ryzen 7 / 32GB / 1TB NVMe SSD) als Master - mehrere Raspberry Pis (3+4) als Slaves. InfluxDB V2 und Grafana auf LXC.

                                      *Wer freundlich ist, dem wird freundlich geholfen *

                                      1 Reply Last reply
                                      0
                                      • Thomas BraunT Thomas Braun

                                        @sticks

                                        Bei dir fehlen build header.
                                        Da dürfte irgendein python-dev Paket fehlen. Kann dir das aber gerade nicht raussuchen, am Handy ist das doof.

                                        Edit: Installier mal python3-cffi-backend nach.

                                        S Offline
                                        S Offline
                                        sticks
                                        wrote on last edited by sticks
                                        #342

                                        @thomas-braun said in Diskussion zum HowTo nodejs-Installation und upgrade:

                                        python3-cffi-backend

                                        Hab jetzt auf meinem Raspi 4 mit apt-get update und "sudo apt-get install python3-cffi-backend" das ganze nachinstalliert.

                                        Es bleibt bei Fehler 25 wenn ich ESPHOME installieren möchte, aber die Log-Ausgabe dazu ist jetzt deutlich kürzer geworden:

                                        $ iobroker add esphome --host iobrokerpi
                                        
                                        NPM version: 8.15.0Installing iobroker.esphome@0.2.4... (System call)
                                        
                                        host.iobrokerpi Cannot install iobroker.esphome@0.2.4: 126
                                        
                                        ERROR: Process exited with code 25
                                        

                                        Was mir zu meiner Recherche zur "Cannot install iobroker.esphome@0.2.4: 126"-Zeile noch aufgefallen ist.
                                        Innerhalb einer SSH-Session führt das Kommando "nodejs -v" zu einer "command not found"-Fehlermeldung.
                                        Wobei iobroker selbst in der Weboberfläche ein installiertes Node.js: v16.17.0 erkennt. - Kann hier die Ursache liegen, oder ist das normal !?

                                        GlasfaserG 1 Reply Last reply
                                        0
                                        • S sticks

                                          @thomas-braun said in Diskussion zum HowTo nodejs-Installation und upgrade:

                                          python3-cffi-backend

                                          Hab jetzt auf meinem Raspi 4 mit apt-get update und "sudo apt-get install python3-cffi-backend" das ganze nachinstalliert.

                                          Es bleibt bei Fehler 25 wenn ich ESPHOME installieren möchte, aber die Log-Ausgabe dazu ist jetzt deutlich kürzer geworden:

                                          $ iobroker add esphome --host iobrokerpi
                                          
                                          NPM version: 8.15.0Installing iobroker.esphome@0.2.4... (System call)
                                          
                                          host.iobrokerpi Cannot install iobroker.esphome@0.2.4: 126
                                          
                                          ERROR: Process exited with code 25
                                          

                                          Was mir zu meiner Recherche zur "Cannot install iobroker.esphome@0.2.4: 126"-Zeile noch aufgefallen ist.
                                          Innerhalb einer SSH-Session führt das Kommando "nodejs -v" zu einer "command not found"-Fehlermeldung.
                                          Wobei iobroker selbst in der Weboberfläche ein installiertes Node.js: v16.17.0 erkennt. - Kann hier die Ursache liegen, oder ist das normal !?

                                          GlasfaserG Offline
                                          GlasfaserG Offline
                                          Glasfaser
                                          wrote on last edited by
                                          #343

                                          @sticks sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                                          aber die Log-Ausgabe dazu ist jetzt deutlich kürzer geworden:

                                          Ja ... weil dahinter der --debug fehlt

                                          Synology 918+ 16GB - ioBroker in Docker v9 , VISO auf Trekstor Primebook C13 13,3" , Hikvision Domkameras mit Surveillance Station .. CCU RaspberryMatic in Synology VM .. Zigbee CC2538+CC2592 .. Sonoff .. KNX .. Modbus ..

                                          S 1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

                                          ioBroker
                                          Community Adapters
                                          Donate
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          180

                                          Online

                                          32.4k

                                          Users

                                          81.3k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe