Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. NPM Error Windows

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    NPM Error Windows

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

      Hallo!
      ich habe das Problem,dass im Iobroker die npm nicht mehr vorhanden ist siehe Bild:

      4a28bdff-4cdf-42a6-a991-dacf9140ba21-grafik.png

      es funktioniert soweit aber noch alles, nur bei Updates tritt folgender Fehler auf und die Updates werden abgebrochen:

      $ ./iobroker upgrade backitup
      Update backitup from @2.1.11 to @2.1.13
      host.DESKTOP-A9EDP48(SmartHome) Adapter "system.adapter.backitup.0" is stopped.
      ERROR: Error: double-loading config "C:\Program Files\iobroker\SmartHome\env\etc\npmrc" as "global", previously loaded as "user"    at Config.[loadObject] (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:451:13)    at C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:490:30    at async Config.[loadFile] (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:488:5)    at async Config.load (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:268:5)    at async Object.[_load] (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\lib\npm.js:185:5)Error: call config.load() before reading values    at Config.get (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:182:13)    at exitHandler (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\lib\utils\exit-handler.js:185:32)    at module.exports (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\lib\cli.js:75:12)Error: call config.load() before reading values    at Config.get (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:182:13)    at process.exitHandler (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\lib\utils\exit-handler.js:185:32)    at process.emit (events.js:375:28)    at processPromiseRejections (internal/process/promises.js:245:33)    at processTicksAndRejections (internal/process/task_queues.js:96:32)C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:182
            throw new Error('call config.load() before reading values')
            ^
      
      Error: call config.load() before reading values
          at Config.get (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:182:13)
          at process.exitHandler (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\lib\utils\exit-handler.js:185:32)
          at process.emit (events.js:375:28)
          at process._fatalException (internal/process/execution.js:163:25)
      ERROR: Error trying to check npm version: Error: Command failed: npm -vError: double-loading config "C:\Program Files\iobroker\SmartHome\env\etc\npmrc" as "global", previously loaded as "user"    at Config.[loadObject] (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:451:13)    at C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:490:30    at async Config.[loadFile] (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:488:5)    at async Config.load (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:268:5)    at async Object.[_load] (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\lib\npm.js:185:5)Error: call config.load() before reading values    at Config.get (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:182:13)    at exitHandler (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\lib\utils\exit-handler.js:185:32)    at module.exports (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\lib\cli.js:75:12)Error: call config.load() before reading values    at Config.get (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:182:13)    at process.exitHandler (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\lib\utils\exit-handler.js:185:32)    at process.emit (events.js:375:28)    at processPromiseRejections (internal/process/promises.js:245:33)    at processTicksAndRejections (internal/process/task_queues.js:96:32)C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:182
            throw new Error('call config.load() before reading values')
            ^
      
      Error: call config.load() before reading values
          at Config.get (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\node_modules\@npmcli\config\lib\index.js:182:13)
          at process.exitHandler (C:\Program Files\iobroker\SmartHome\env\npm\node_modules\npm\lib\utils\exit-handler.js:185:32)
          at process.emit (events.js:375:28)
          at process._fatalException (internal/process/execution.js:163:25)
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!Aborting install because the npm version could not be checked!Please check that npm is installed correctly.Use "npm install -g npm@4" or "npm install -g npm@latest" to install a supported version.You need to make sure to repeat this step after installing an update to NodeJS and/or npm!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      ERROR: process exited with code 30
      

      Habe im Forum lange gesucht, aber leider nichts hilfreiches gefunden Kann mir jemand helfen,oder hat jemand eine Idee wie ich diesen Fehler beheben kann?

      Vielen Dank im Voraus!!

      Systemdata Bitte Ausfüllen
      Hardwaresystem: Surface pro
      Arbeitsspeicher: 4 GB
      Festplattenart: SSD
      Betriebssystem: Windows 10 pro
      Node-Version: 14.17.3
      Nodejs-Version: 14.17.3
      NPM-Version: 6.14.12
      sigi234 Homoran 2 Replies Last reply Reply Quote 0
      • sigi234
        sigi234 Forum Testing Most Active @Paulsen33 last edited by

        @paulsen33

        Folgende Schritte sind bei einem Update und Neuinstallation zwingend notwendig:
        data-Ordner sichern (nur bei Update)
        Frische Installation mit dem Installer von der Webseite (2019-11-23) aufsetzen. Dabei (falls Update) den zuvor gesicherten data-Ordner durch den Installer einlesen.
        Nichts weiter tun!
        ioBroker-Konsole der neuen Installation auf
        iobroker stop
        npm i iobroker.js-controller@stable --ignore-scripts
        iobroker start

        Diese führt dich zu folgendem Workaround:
        https://forum.iobroker.net/post/446928

        NODE UPDATE:
        1: Konsole: iobroker stop
        2: Sicherung des Ordners: C:\Program Files\iobroker\deinhostname\nodejs auf dem Desktop
        3: Download der benötigten Node.js Version unter https://nodejs.org als Archiv nicht als msi Datei
        4: Entpacken des Downloads und kopieren den Gesamten Ordners über den vorhandenen C:\Program Files\iobroker\deinhostname\nodejs Ordner.
        5: Kopiere aus der Sicherungskopie des Desktops die Datei nodevars.bat in den Ordner C:\Program Files\iobroker\deinhostname\nodejs
        6: Konsole: iobroker start

        Paulsen33 1 Reply Last reply Reply Quote 0
        • Paulsen33
          Paulsen33 @sigi234 last edited by

          @sigi234
          Danke für die schnelle Antwort! Werde es gleich ausprobieren...

          1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @Paulsen33 last edited by

            @paulsen33 sagte in NPM Error Windows:

            ich habe das Problem,dass im Iobroker die npm nicht mehr vorhanden ist

            und wo hast du das hier her?

            @paulsen33 sagte in NPM Error Windows:

            NPM-Version:
            6.14.12


            @paulsen33 sagte in NPM Error Windows:

            siehe Bild:

            ich hab dann eher den Verdacht, dass da etwas mit dem Info Adapter nicht stimmt.

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

            Support us

            ioBroker
            Community Adapters
            Donate

            940
            Online

            31.9k
            Users

            80.1k
            Topics

            1.3m
            Posts

            3
            4
            512
            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