Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. NPM-Fehler -> Neu-Installation geplant

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    NPM-Fehler -> Neu-Installation geplant

    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      HolgerMartin last edited by

      Leider bin ich auch von den NPM Fehler betroffen (vermutlich durch fehlerhafte Konfigurationen zu Beginn meiner IOBroker Zeit), so dass ich keine Adapter mehr installieren kann.

      $ iobroker upgrade flot@1.11.0 --debug
      Update flot from @1.10.7 to @1.11.0
      NPM version: 8.11.0Installing iobroker.flot@1.11.0... (System call)
      npm WARN old lockfile npm WARN old lockfile The package-lock.json file was created with an old version of npm,npm WARN old lockfile so supplemental metadata must be fetched from the registry.npm WARN old lockfile npm WARN old lockfile This is a one-time fix-up, please be patient...npm WARN old lockfile
      npm WARN tarball tarball data for iobroker.icons-open-icon-library-png@https://github.com/ioBroker/ioBroker.icons-open-icon-library-png/tarball/master (sha512-qGFFRFfv/uSaVT+z3v01bwdZYjfIES0YwaHNOgy+OO28NMa8/8fh2rkBKGHNeHfFPBTo3juTeH+p6ngZ6s//7w==) seems to be corrupted. Trying again.
      npm WARN tarball tarball data for iobroker.icons-open-icon-library-png@https://github.com/ioBroker/ioBroker.icons-open-icon-library-png/tarball/master (sha512-qGFFRFfv/uSaVT+z3v01bwdZYjfIES0YwaHNOgy+OO28NMa8/8fh2rkBKGHNeHfFPBTo3juTeH+p6ngZ6s//7w==) seems to be corrupted. Trying again.
      npm WARN old lockfile Error: sha512-qGFFRFfv/uSaVT+z3v01bwdZYjfIES0YwaHNOgy+OO28NMa8/8fh2rkBKGHNeHfFPBTo3juTeH+p6ngZ6s//7w== integrity checksum failed when using sha512: wanted sha512-qGFFRFfv/uSaVT+z3v01bwdZYjfIES0YwaHNOgy+OO28NMa8/8fh2rkBKGHNeHfFPBTo3juTeH+p6ngZ6s//7w== but got sha512-ZH4lj95sM6IpZEL2H1HR0hXTo6GMqbUBPbQyylgdRd6TDEdU+fgohUVGW4gPI0UnrAzqM/kx5+mozLqCVh2DCg==. (64751136 bytes)
      npm WARN old lockfile at IntegrityStream.[_onEnd] (/usr/lib/node_modules/npm/node_modules/ssri/lib/index.js:118:19)npm WARN old lockfile at IntegrityStream.emit (/usr/lib/node_modules/npm/node_modules/ssri/lib/index.js:88:19)npm WARN old lockfile at IntegrityStream.[maybeEmitEnd] (/usr/lib/node_modules/npm/node_modules/minipass/index.js:370:12)
      npm WARN old lockfile at IntegrityStream.emit (/usr/lib/node_modules/npm/node_modules/minipass/index.js:434:29)npm WARN old lockfile at IntegrityStream.emit (/usr/lib/node_modules/npm/node_modules/ssri/lib/index.js:90:18)npm WARN old lockfile at IntegrityStream.[resume] (/usr/lib/node_modules/npm/node_modules/minipass/index.js:265:12)npm WARN old lockfile at IntegrityStream.resume (/usr/lib/node_modules/npm/node_modules/minipass/index.js:269:24)
      npm WARN old lockfile at CachingMinipassPipeline.emit (/usr/lib/node_modules/npm/node_modules/minipass-pipeline/index.js:105:19)npm WARN old lockfile at CachingMinipassPipeline.emit (/usr/lib/node_modules/npm/node_modules/make-fetch-happen/lib/pipeline.js:37:18)npm WARN old lockfile at CachingMinipassPipeline.[resume] (/usr/lib/node_modules/npm/node_modules/minipass/index.js:259:10)npm WARN old lockfile Could not fetch metadata for iobroker.icons-open-icon-library-png@https://github.com/ioBroker/ioBroker.icons-open-icon-library-png/tarball/master Error: sha512-qGFFRFfv/uSaVT+z3v01bwdZYjfIES0YwaHNOgy+OO28NMa8/8fh2rkBKGHNeHfFPBTo3juTeH+p6ngZ6s//7w== integrity checksum failed when using sha512: wanted sha512-qGFFRFfv/uSaVT+z3v01bwdZYjfIES0YwaHNOgy+OO28NMa8/8fh2rkBKGHNeHfFPBTo3juTeH+p6ngZ6s//7w== but got sha512-ZH4lj95sM6IpZEL2H1HR0hXTo6GMqbUBPbQyylgdRd6TDEdU+fgohUVGW4gPI0UnrAzqM/kx5+mozLqCVh2DCg==. (64751136 bytes)npm WARN old lockfile at IntegrityStream.[_onEnd] (/usr/lib/node_modules/npm/node_modules/ssri/lib/index.js:118:19)npm WARN old lockfile at IntegrityStream.emit (/usr/lib/node_modules/npm/node_modules/ssri/lib/index.js:88:19)npm WARN old lockfile at IntegrityStream.[maybeEmitEnd] (/usr/lib/node_modules/npm/node_modules/minipass/index.js:370:12)npm WARN old lockfile at IntegrityStream.emit (/usr/lib/node_modules/npm/node_modules/minipass/index.js:434:29)npm WARN old lockfile at IntegrityStream.emit (/usr/lib/node_modules/npm/node_modules/ssri/lib/index.js:90:18)
      npm WARN old lockfile at IntegrityStream.[resume] (/usr/lib/node_modules/npm/node_modules/minipass/index.js:265:12)npm WARN old lockfile at IntegrityStream.resume (/usr/lib/node_modules/npm/node_modules/minipass/index.js:269:24)npm WARN old lockfile at CachingMinipassPipeline.emit (/usr/lib/node_modules/npm/node_modules/minipass-pipeline/index.js:105:19)npm WARN old lockfile at CachingMinipassPipeline.emit (/usr/lib/node_modules/npm/node_modules/make-fetch-happen/lib/pipeline.js:37:18)npm WARN old lockfile at CachingMinipassPipeline.[resume] (/usr/lib/node_modules/npm/node_modules/minipass/index.js:259:10) {npm WARN old lockfile code: 'EINTEGRITY',npm WARN old lockfile found: Integrity { sha512: [ [Hash] ] },npm WARN old lockfile expected: [npm WARN old lockfile Hash {npm WARN old lockfile source: 'sha512-qGFFRFfv/uSaVT+z3v01bwdZYjfIES0YwaHNOgy+OO28NMa8/8fh2rkBKGHNeHfFPBTo3juTeH+p6ngZ6s//7w==',npm WARN old lockfile digest: 'qGFFRFfv/uSaVT+z3v01bwdZYjfIES0YwaHNOgy+OO28NMa8/8fh2rkBKGHNeHfFPBTo3juTeH+p6ngZ6s//7w==',npm WARN old lockfile algorithm: 'sha512',npm WARN old lockfile options: []npm WARN old lockfile }npm WARN old lockfile ],npm WARN old lockfile algorithm: 'sha512',npm WARN old lockfile sri: Integrity { sha512: [ [Hash] ] }npm WARN old lockfile }
      npm ERR! code ENOTEMPTYnpm ERR! syscall renamenpm ERR! path /opt/iobroker/node_modules/iobroker.icons-open-icon-library-pngnpm ERR! dest /opt/iobroker/node_modules/.iobroker.icons-open-icon-library-png-dWPxt8qGnpm ERR! errno -39
      npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/iobroker.icons-open-icon-library-png' -> '/opt/iobroker/node_modules/.iobroker.icons-open-icon-library-png-dWPxt8qG'
      npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2022-06-28T18_06_42_417Z-debug-0.log
      host.iobroker Cannot install iobroker.flot@1.11.0: 217
      ERROR: Process exited with code 25
      

      Obwohl ich zu dem Thema viele Artikel gefunden habe, hat keiner der Artikel mir zu einer Lösung geholfen, obwohl die NPM-Versionen alle die korrekten Versionen haben und auch in den richtigen Verzeichnissen liegen. Da ich aber schon immer Probleme beim NPM Update hatte, plane ich nun meine IOBroker Installation auf einem frischen Linux aufzusetzen.

      Ich habe nun folgende Anfängerfragen an die Experten:

      • Welches Linux sollte man verwenden Ubuntu oder Debian? (Habe den Eindruck, dass die meisten Installationsanleitung sich auf Debian beziehen)
      • Meine aktuelle IOBroker Installation läuft auf einem NUC mit Proxmox. Kann ich einfach parallel zur vorhanden Installation ein neues System hochziehen, mit neuem Hostnamen und neuer IP, dann die alte Version herunterfahren und das Backup auf dem neuen System einspielen oder bekomme ich dann Probleme, weil sich Hostname und IP geändert haben?
      • Die Installation vom IOBroker erfolgt doch inzwischen einfach über den Befehl:
      curl -sLf https://iobroker.net/install.sh | bash -
      
      • Wird hierbei auch gleich NPM in der richtigen Version mit installiert?

      Ich danke Euch im voraus für Eure Unterstützung

      Thomas Braun 2 Replies Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @HolgerMartin last edited by

        @holgermartin sagte in NPM-Fehler -> Neu-Installation geplant:

        /opt/iobroker/node_modules/iobroker.icons-open-icon-library-png' -> '/opt/iobroker/node_modules/.iobroker.icons-open-icon-library-png-dWPxt8qG

        Lösch die aufgeführten Verzeichnisse einfach.

        sudo -u iobroker rm -rf /opt/iobroker/node_modules/.iobroker.icons-open-icon-library-png-dWPxt8qG
        
        1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @HolgerMartin last edited by

          @holgermartin sagte in NPM-Fehler -> Neu-Installation geplant:

          Wird hierbei auch gleich NPM in der richtigen Version mit installiert?

          Der Installer bringt eine aktuelle Version des Pakets 'nodejs' auf das System. Dieses beinhaltet immer eine passende Version von npm.
          npm wird am besten nie irgendwie separat angepackt.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Support us

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

          727
          Online

          32.0k
          Users

          80.4k
          Topics

          1.3m
          Posts

          2
          3
          263
          Loading More Posts
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes
          Reply
          • Reply as topic
          Log in to reply
          Community
          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
          The ioBroker Community 2014-2023
          logo