Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst]Admin Adapter geht nicht mehr (npm zerschossen?)

    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

    [gelöst]Admin Adapter geht nicht mehr (npm zerschossen?)

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

      Hi,

      ich habe folgendes Problem:

      Ich habe auf meinem Raspberry Pi3 mit ioBroker das System geupdatet:

      sudo apt-get update && sudo apt-get upgrade
      

      Nach dem Neustart lief erst einmal alles gut. Als nach ein paar Tagen die ersten Updates für Adapter über die Admin-Console rein gekommen sind, ließen sich diese nicht updaten. Es kam immer folgender Fehler (egal welcher Adapter):

      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      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@>=5.7.1" to install a supported version.
      You need to make sure to repeat this step after installing an update to NodeJS and/or npm
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      
      

      Als ich den Admin Adapter über SSH ausgeführt habe, kam der obige Fehler erneut und seit dem komme ich nicht mehr auf die Admin-Console 😢

      Daraufin habe ich die oben empfohlenen Befehle ausprobiert, kam aber immer:

      sudo: npm: Befehl nicht gefunden
      

      Versionschecks für node, nodejs und npm ergaben folgendes:

      node -v

      v. 8.11.1

      nodejs -v

      v. 8.11.1

      npm -v

      -bash: npm: Kommando nicht gefunden.

      Daraufhin habe ich Node.js nach Anleitung neu zu installieren, was auch ohne Fehler durchlief:

      curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
      sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev nodejs
      reboot
      

      Geändert hat es aber nichts. npm -v gibt kein Ergebnis.

      Könnt ihr mir helfen den Fehler zu beseitigen, sodass ich auch wieder auf die Adminconsole komme?

      Vielen Dank & Grüße

      Modjo

      1 Reply Last reply Reply Quote 0
      • Dutchman
        Dutchman Developer Most Active Administrators last edited by

        Ist leider die letzten Tage öfter vorbei gekommen irgendwas ist da faul mit dem node 6 repository.

        2 Möglichkeiten :

        • direct nach 8 updaten und danach npm Updaten !

        • npm Manuel nachinstallieren

        ~Dutch

        Sent from my iPhone using Tapatalk

        1 Reply Last reply Reply Quote 0
        • M
          Modjo last edited by

          @Dutchman:

          Ist leider die letzten Tage öfter vorbei gekommen irgendwas ist da faul mit dem node 6 repository.

          2 Möglichkeiten :

          • direct nach 8 updaten und danach npm Updaten !

          • npm Manuel nachinstallieren

          ~Dutch

          Sent from my iPhone using Tapatalk `

          Hi Dutch,

          vielen Dank für deine schnelle Antwort.

          Was würdest du empfehlen? Wie wäre die Umsetzung? Ich bin da eher Laie 🙂

          Bin ich nicht schon auf 8? node -v gibt ja 8.11.1 aus

          Danke & Gruß

          Modjo

          1 Reply Last reply Reply Quote 0
          • Dutchman
            Dutchman Developer Most Active Administrators last edited by

            Jup bist auf 8 aber mit falscher repro also nochmal den curl Befehl ausführen aber anstatt 6 die 8

            Sent from my iPhone using Tapatalk

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

              Bitte noch mal node deinstalliern und neu mit dem befehl

              curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
              

              Statt dem 6.x

              Anschließend noch sudo apt install nodejs

              Gruß Rainer

              1 Reply Last reply Reply Quote 0
              • M
                Modjo last edited by

                @Homoran:

                Bitte noch mal node deinstalliern und neu mit dem befehl

                curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
                

                Statt dem 6.x

                Anschließend noch sudo apt install nodejs

                Gruß Rainer `

                Wie deinstalliere ich es vorab?

                Vielen Dank!

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

                  @Modjo:

                  Wie deinstalliere ich es vorab? `
                  Anleitung Schritt 1 - 3

                  http://www.iobroker.net/docu/?page_id=5 … ion_Nodejs

                  Gruß

                  Rainer

                  1 Reply Last reply Reply Quote 0
                  • I
                    iomypi last edited by

                    Freundliches Hallo an alle hier im Forum

                    bin iobroker beginner, hatte bis gestern eine laufende Version.

                    Habe nun aber wohl das gleiche Problem wie Modjo, deshalb alles wieder gelöscht und neu installiert

                    die 8.x lief sauber durch

                    dann gab´s bei "npm install iobroker –unsafe-perm"

                    folgende Fehlermeldung:

                    NPM version: 5.6.0

                    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                    NPM 5 is only supported starting with version 5.7.1!

                    Please use "npm install -g npm@4" to downgrade npm to 4.x or

                    use "npm install -g npm@latest" to install a supported version of npm 5!

                    You need to make sure to repeat this step after installing an update to NodeJS and/or npm.

                    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

                    npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/package.json'

                    npm WARN iobroker No description

                    npm WARN iobroker No repository field.

                    npm WARN iobroker No README data

                    npm WARN iobroker No license field.

                    npm ERR! code ELIFECYCLE

                    npm ERR! errno 4

                    npm ERR! iobroker@1.1.2 install: node lib/prepareSetup.js && node lib/setup.js

                    npm ERR! Exit status 4

                    npm ERR!

                    npm ERR! Failed at the iobroker@1.1.2 install script.

                    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

                    npm ERR! A complete log of this run can be found in:

                    npm ERR! /root/.npm/_logs/2018-07-18T10_53_38_068Z-debug.log

                    Kann jemand sagen, wie ich da weiter kommen könnte.

                    Vielen Dank und Grüße

                    iomypi

                    1 Reply Last reply Reply Quote 0
                    • Bluefox
                      Bluefox last edited by

                      npm i npm@latest-5 -g
                      
                      1 Reply Last reply Reply Quote 0
                      • I
                        iomypi last edited by

                        Das ist schon zieimlich klasse hier. Herzlichen Dank. Läuft wieder und JS geht jetzt auch.

                        Danke!!

                        1 Reply Last reply Reply Quote 0
                        • M
                          Modjo last edited by

                          Bei mir hats nun auch so geklappt. Vielen Dank!

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

                          Support us

                          ioBroker
                          Community Adapters
                          Donate

                          840
                          Online

                          31.8k
                          Users

                          80.0k
                          Topics

                          1.3m
                          Posts

                          5
                          11
                          1630
                          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