Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. [gelöst] Dopellte Node.js installation korrigieren

    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

    UNSOLVED [gelöst] Dopellte Node.js installation korrigieren

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @heinhan last edited by Thomas Braun

      @heinhan
      Du hast beide (node und nodejs) in verschiedenen Versionen aus verschiedenen Quellen installiert.
      Um den Kram sauber zu bekommen:

      sudo  rm /usr/local/bin/node
      sudo rm /usr/local/bin/npm
      sudo apt update
      sudo apt install nodejs --reinstall
      

      Danach sollte es übereinstimmende Versionen von node und nodejs geben. Prüfen mit:

      which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
      

      Updates/upgrades nur per

      sudo apt update
      sudo apt upgrade
      

      machen.

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

        Sieht gut aus, jetzt wird mir node nicht mehr angezeigt:

        pi@raspberrypi:~ $ node -v
        bash: /usr/local/bin/node: Datei oder Verzeichnis nicht gefunden

        npm wurd auf Vers. 6.14.4 zurück gestuft.

        nodejs:
        pi@raspberrypi:~ $ nodejs -v
        v12.18.0

        Betriebssystem
        linux
        Architektur
        arm
        CPUs
        4
        Geschwindigkeit
        1500 MHz
        Modell
        ARMv7 Processor rev 3 (v7l)
        RAM
        3.81 GB
        System Betriebszeit
        1 T. 03:32:54
        Node.js
        v12.18.0
        NPM
        6.14.4
        Festplatte Größe
        28.95 GB
        Festplatte frei
        15.89 GB
        Anzahl der Adapter
        352
        Betriebszeit
        00:03:17
        Aktive Instanzen
        8
        Hostname
        raspberrypi
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @heinhan last edited by Thomas Braun

          @heinhan

          node -v
          

          muss dir schon was ausgeben.
          Hast du

          sudo apt install nodejs --reinstall
          

          ausgeführt?

          Ausgabe von

          which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
          

          schaut nun wie aus?

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

            Ja, siehe hier:

            pi@raspberrypi:~ $ sudo apt install nodejs --reinstall
            Paketlisten werden gelesen... Fertig
            Abhängigkeitsbaum wird aufgebaut.       
            Statusinformationen werden eingelesen.... Fertig
            0 aktualisiert, 0 neu installiert, 1 erneut installiert, 0 zu entfernen und 0 nicht aktualisiert.
            Es müssen noch 0 B von 16,0 MB an Archiven heruntergeladen werden.
            Nach dieser Operation werden 0 B Plattenplatz zusätzlich benutzt.
            (Lese Datenbank ... 154238 Dateien und Verzeichnisse sind derzeit installiert.)
            Vorbereitung zum Entpacken von .../nodejs_12.18.0-1nodesource1_armhf.deb ...
            Detected old npm client, removing...
            Entpacken von nodejs (12.18.0-1nodesource1) über (12.18.0-1nodesource1) ...
            nodejs (12.18.0-1nodesource1) wird eingerichtet ...
            Trigger für man-db (2.8.5-2) werden verarbeitet ...
            
            

            Iobroker habe ich gestoppt und neu gestartet.
            Raspi nicht neu gebootet

            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @heinhan last edited by

              @heinhan

              Joh.... Und

              which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
              

              sagt nun?

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

                pi@raspberrypi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                /usr/bin/nodejs
                v12.18.0
                /usr/bin/node
                bash: /usr/local/bin/node: Datei oder Verzeichnis nicht gefunden
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @heinhan last edited by

                  @heinhan Starte die Kiste mal durch.

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

                    Nach dem Reboot sieht es so aus:

                    pi@raspberrypi:~ $ which nodejs && nodejs -v && which node && node -v && which npm && npm -v && apt policy nodejs
                    /usr/bin/nodejs
                    v12.18.0
                    /usr/bin/node
                    v12.18.0
                    /usr/bin/npm
                    6.14.4
                    nodejs:
                      Installiert:           12.18.0-1nodesource1
                      Installationskandidat: 12.18.0-1nodesource1
                      Versionstabelle:
                     *** 12.18.0-1nodesource1 500
                            500 https://deb.nodesource.com/node_12.x buster/main armhf Packages
                            100 /var/lib/dpkg/status
                         10.21.0~dfsg-1~deb10u1+rpi1 500
                            500 http://raspbian.raspberrypi.org/raspbian buster/main armhf Packages
                    _text
                    

                    Danke für Deine Hilfe.

                    Noch eine Frage, wie setzt man das ganze jetzt auf "gelöst"

                    Thomas Braun 1 Reply Last reply Reply Quote 0
                    • Thomas Braun
                      Thomas Braun Most Active @heinhan last edited by

                      @heinhan
                      Deinen ersten Eintrag bearbeiten.
                      Dann kannst du gleich auch einen besseren Betreff wählen.

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

                        Titel gändert. Nochmals Danke für Deine schnelle Hilfe

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        914
                        Online

                        31.9k
                        Users

                        80.1k
                        Topics

                        1.3m
                        Posts

                        falsche nodejs anzeige
                        2
                        11
                        1730
                        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