Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Node Version falsche Version

    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

    Node Version falsche Version

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators last edited by

      worauf läuft das Ganze bei dir?

      kann sein, dass dein Debian bereits eine nodejs installation mitgebracht hat

      WAs sagt:

      which node
      

      Auf jeden Fall müssen wir das System erst einmal sauber bekommen, bevor da nicht nur zwei sondern nachher 4 node-Versionen drauf laufen 😉

      Gruß

      Rainer

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

        Hi,

        sonst versuche es mal mit der Installationsanleitung (inkl. Deinstallation altes Node).

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

        So habe ich bei mir Node 6 auf Debian installiert.

        Gruß,

        Eric

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

          Es sind offenbar 3 Versionen installiert. Schau bitte nach, was in den Suchpfaden für Dateien und Sym-Links vorhanden sind.

          ls -l /usr/local/bin/node*
          ls -l /usr/bin/node*
          

          In /usr/local/bin wird beider Eingabe von "node -v" zuerst gesucht. ioBroker erwartet "node" allerdings im Verzeichnis /usr/bin. Welche Version soll für ioBroker verwendet werden ?

          1 Reply Last reply Reply Quote 0
          • H
            heiner1976 last edited by

            @ Homoran

            which node sagt:

            ` > root@debian:~# which node

            /root/.nvm/versions/node/v4.7.3/bin/node `

            dann hab ich die Installationsanleitung durchgeführt

            nach Deinstallation immer noch :

            ` > root@debian:~# which node

            /root/.nvm/versions/node/v4.7.3/bin/node `

            Installation
            ` > root@debian:~# curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

            Installing the NodeSource Node.js v6.x repo…

            Populating apt-get cache...

            • apt-get update

            OK http://security.debian.org jessie/updates InRelease

            Ign http://ftp.de.debian.org jessie InRelease

            OK http://ftp.de.debian.org jessie Release.gpg

            OK http://ftp.de.debian.org jessie Release

            OK https://deb.nodesource.com jessie InRelease

            OK http://security.debian.org jessie/updates/main Sources

            OK http://security.debian.org jessie/updates/main amd64 Packages

            OK http://ftp.de.debian.org jessie/main Sources

            OK http://security.debian.org jessie/updates/main Translation-en

            OK http://ftp.de.debian.org jessie/main amd64 Packages

            OK http://ftp.de.debian.org jessie/main Translation-de_DE

            OK http://ftp.de.debian.org jessie/main Translation-de

            OK https://deb.nodesource.com jessie/main Sources

            OK http://ftp.de.debian.org jessie/main Translation-en

            OK https://deb.nodesource.com jessie/main amd64 Packages

            Holen: 1 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]

            Holen: 2 https://deb.nodesource.com jessie/main Translation-de [162 B]

            Holen: 3 https://deb.nodesource.com jessie/main Translation-en [162 B]

            Holen: 4 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]

            Holen: 5 https://deb.nodesource.com jessie/main Translation-de [162 B]

            Holen: 6 https://deb.nodesource.com jessie/main Translation-en [162 B]

            Holen: 7 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]

            Holen: 8 https://deb.nodesource.com jessie/main Translation-de [162 B]

            Holen: 9 https://deb.nodesource.com jessie/main Translation-en [162 B]

            Holen: 10 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]

            Holen: 11 https://deb.nodesource.com jessie/main Translation-de [162 B]

            Holen: 12 https://deb.nodesource.com jessie/main Translation-en [162 B]

            Holen: 13 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]

            Ign https://deb.nodesource.com jessie/main Translation-de_DE

            Holen: 14 https://deb.nodesource.com jessie/main Translation-de [162 B]

            Ign https://deb.nodesource.com jessie/main Translation-de

            Holen: 15 https://deb.nodesource.com jessie/main Translation-en [162 B]

            Ign https://deb.nodesource.com jessie/main Translation-en

            Paketlisten werden gelesen… Fertig

            Confirming "jessie" is supported...

            • curl -sLf -o /dev/null 'https://deb.nodesource.com/node_6.x/dis ... ie/Release'

            Adding the NodeSource signing key to your keyring...

            • curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -

            OK

            Creating apt sources list file for the NodeSource Node.js v6.x repo...

            • echo 'deb https://deb.nodesource.com/node_6.x jessie main' > /etc/apt/sources.list.d/nodesource.list

            • echo 'deb-src https://deb.nodesource.com/node_6.x jessie main' >> /etc/apt/sources.list.d/nodesource.list

            Running apt-get update for you...

            • apt-get update

            OK http://security.debian.org jessie/updates InRelease

            Ign http://ftp.de.debian.org jessie InRelease

            OK http://ftp.de.debian.org jessie Release.gpg

            OK http://ftp.de.debian.org jessie Release

            OK http://security.debian.org jessie/updates/main Sources

            OK https://deb.nodesource.com jessie InRelease

            OK http://security.debian.org jessie/updates/main amd64 Packages

            OK http://ftp.de.debian.org jessie/main Sources

            OK http://security.debian.org jessie/updates/main Translation-en

            OK http://ftp.de.debian.org jessie/main amd64 Packages

            OK http://ftp.de.debian.org jessie/main Translation-de_DE

            OK https://deb.nodesource.com jessie/main Sources

            OK http://ftp.de.debian.org jessie/main Translation-de

            OK https://deb.nodesource.com jessie/main amd64 Packages

            Holen: 1 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]

            OK http://ftp.de.debian.org jessie/main Translation-en

            Holen: 2 https://deb.nodesource.com jessie/main Translation-de [162 B]

            Holen: 3 https://deb.nodesource.com jessie/main Translation-en [162 B]

            Holen: 4 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]

            Holen: 5 https://deb.nodesource.com jessie/main Translation-de [162 B]

            Holen: 6 https://deb.nodesource.com jessie/main Translation-en [162 B]

            Holen: 7 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]

            Holen: 8 https://deb.nodesource.com jessie/main Translation-de [162 B]

            Holen: 9 https://deb.nodesource.com jessie/main Translation-en [162 B]

            Holen: 10 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]

            Holen: 11 https://deb.nodesource.com jessie/main Translation-de [162 B]

            Holen: 12 https://deb.nodesource.com jessie/main Translation-en [162 B]

            Holen: 13 https://deb.nodesource.com jessie/main Translation-de_DE [162 B]

            Ign https://deb.nodesource.com jessie/main Translation-de_DE

            Holen: 14 https://deb.nodesource.com jessie/main Translation-de [162 B]

            Ign https://deb.nodesource.com jessie/main Translation-de

            Holen: 15 https://deb.nodesource.com jessie/main Translation-en [162 B]

            Ign https://deb.nodesource.com jessie/main Translation-en

            Paketlisten werden gelesen… Fertig

            Run apt-get install nodejs (as root) to install Node.js v6.x and npm

            root@debian:~# sudo apt-get install nodejs

            Paketlisten werden gelesen... Fertig

            Abhängigkeitsbaum wird aufgebaut.

            Statusinformationen werden eingelesen.... Fertig

            Die folgenden NEUEN Pakete werden installiert:

            nodejs

            0 aktualisiert, 1 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.

            Es müssen noch 0 B von 9.881 kB an Archiven heruntergeladen werden.

            Nach dieser Operation werden 44,4 MB Plattenplatz zusätzlich benutzt.

            Vormals nicht ausgewähltes Paket nodejs wird gewählt.

            (Lese Datenbank ... 38030 Dateien und Verzeichnisse sind derzeit installiert.)

            Vorbereitung zum Entpacken von .../nodejs_6.11.3-1nodesource1_amd64.deb ...

            Entpacken von nodejs (6.11.3-1nodesource1) ...

            Trigger für man-db (2.7.0.2-5) werden verarbeitet ...

            nodejs (6.11.3-1nodesource1) wird eingerichtet ... `

            ` > root@debian:~# which node

            /root/.nvm/versions/node/v4.7.3/bin/node

            root@debian:~# `

            root@debian:~# ls -l /usr/local/bin/node*

            und

            root@debian:~# ls -l /usr/bin/node*

            bringt

            ` > -rwxr-xr-x 1 root staff 37114290 Sep 14 12:47 /usr/local/bin/node

            -rwxr-xr-x 1 root root 25225224 Sep 5 22:23 /usr/bin/node

            lrwxrwxrwx 1 root root 24 Sep 14 16:33 /usr/bin/nodejs -> /etc/alternative s/nodejs `

            Zum Verzweifeln…..

            Ich habe Debian Jessi (lite glaube ich ) in einer VM laufen. eigentlich lief es die ganze Zeit gut bis eine neue Node Version verlangt wurde.

            Derzeitiger Stand:
            ` > root@debian:~# node -v

            v4.7.3

            root@debian:~# npm -v

            2.15.11

            root@debian:~# nodejs -v

            v6.11.3

            root@debian:~# `

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

              wenn which node noch ein Ergebnis bringt ist es noch nicht deinstalliert 😉

              dann sollte man nicht noch ein node (woanders) installieren.

              Da bin ich mangels Wissens jedoch leider raus. Vielleicht kann paul53 da etwas weiterhelfen.

              Gruß

              Rainer

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

                @heiner1976:

                -rwxr-xr-x 1 root staff 37114290 Sep 14 12:47 /usr/local/bin/node

                -rwxr-xr-x 1 root root 25225224 Sep 5 22:23 /usr/bin/node

                lrwxrwxrwx 1 root root 24 Sep 14 16:33 /usr/bin/nodejs -> /etc/alternative s/nodejs Um ganz sicher zu gehen, welche Version die Date node hat, prüfe bitte noch > /usr/bin/node -v

                /usr/local/bin/node -v `
                Der zweite Befehl liefert wahrscheinlich 4.7.3. Dann lösche einfach die Datei.

                rm /usr/local/bin/node
                node -v
                

                /usr/bin/nodejs ist offenbar der Link zur Version 6.11.3.

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

                  @paul53:

                  /usr/bin/nodejs ist offenbar der Link zur Version 6.11.3. `
                  und der zeigt auf
                  @heiner1976:

                  /etc/alternative s/nodejs `

                  gruß

                  Rainer

                  1 Reply Last reply Reply Quote 0
                  • H
                    heiner1976 last edited by

                    Zum Mäusemelken:

                    root@debian:/# /usr/bin/node -v
                    > v6.11.3
                    root@debian:/# /usr/local/bin/node -v
                    > -bash: /usr/local/bin/node: Datei oder Verzeichnis nicht gefunden
                    root@debian:/# which node
                    > /root/.nvm/versions/node/v4.7.3/bin/node
                    root@debian:/# node -v
                    > v4.7.3

                    Habt Ihr noch eine Idee?

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

                      Hi,

                      @heiner1976:

                      root@debian:/# which node
                      > /root/.nvm/versions/node/v4.7.3/bin/node `

                      Du hast da noch was im NVM-Verzeichnis liegen (/root/.nvm) - das ist der Ordner des Node Version Managers.

                      Hast Du Dir den mal installiert?

                      Ich habe auch ein Debian (8 als 32 Bit) auf esxi laufen und habe dieses Verzeichnis nicht.

                      Gruß,

                      Eric

                      PS: Hier sind noch ein paar Infos dazu ==> https://www.voitanos.io/blog/better-nod … on-manager

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

                        @heiner1976:

                        -bash: /usr/local/bin/node: Datei oder Verzeichnis nicht gefunden widerspricht dieser Meldung: > -rwxr-xr-x 1 root staff 37114290 Sep 14 12:47 /usr/local/bin/node `
                        Das ist eine ausführbare Datei mit etwa 37 MByte Größe (erscheint mir für node etwas groß). Versuche doch mal die Datei zu löschen.

                        rm /usr/local/bin/node
                        

                        @heiner1976:

                        root@debian:/# /usr/bin/node -v

                        v6.11.3 `
                        sieht doch gut aus. Sie scheint nur nicht am Anfang des Suchpfades zu stehen. Poste mal

                        echo $PATH
                        
                        T 1 Reply Last reply Reply Quote 0
                        • H
                          heiner1976 last edited by

                          Das ist es!!! Vielen Dank. Jetzt muss ich nur noch den nvm rausschmeißen. Danke!

                          1 Reply Last reply Reply Quote 0
                          • H
                            heiner1976 last edited by

                            root@debian:/usr/local/n/versions/node#**````
                            nvm use system

                            Now using system version of node: v6.11.3 (npm v3.10.10)

                            
                            Danke nochmal an alle!!!! Ohne Euch würde ich noch Tage probieren!
                            1 Reply Last reply Reply Quote 0
                            • T
                              teguruma @paul53 last edited by

                              @paul53 top! hat geholfen, Danke!

                              Glasfaser 1 Reply Last reply Reply Quote 0
                              • Glasfaser
                                Glasfaser @teguruma last edited by Glasfaser

                                @teguruma sagte in Node Version falsche Version:

                                hat geholfen,

                                Was hat geholfen der Thread ist 6 Jahre alt und da hat sich vieles verändert !

                                1 Reply Last reply Reply Quote 0
                                • T
                                  teguruma last edited by

                                  @glasfaser verklickt, habe im falschen Chat geantwortet :=)

                                  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

                                  904
                                  Online

                                  31.9k
                                  Users

                                  80.1k
                                  Topics

                                  1.3m
                                  Posts

                                  7
                                  20
                                  5776
                                  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