Navigation

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

    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 js

    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      deta Most Active @Homoran last edited by

      @Homoran sagte in node js:

      @deta sagte in node js:

      Warum zeigt er immer bei node -v die Falsche Version an?

      Weil du zwei Node-Systeme parallel installiert hast.

      https://forum.iobroker.net/topic/23590/nodejs-v8-x-unter-buster

      Und wie bekomme ich das wieder weg? In den Anleitungen stehts nicht.

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

        @deta sagte in node js:

        In den Anleitungen stehts nicht.

        Doch:
        https://www.iobroker.net/#de/documentation/install/linux.md?installationnodejs
        Punkt 3

        D 1 Reply Last reply Reply Quote 0
        • D
          deta Most Active @Homoran last edited by

          @Homoran Hab ich gemacht gehabt.

          Hab jetzt das wieder in Griff und es ist jetzt richtig.
          Was hab ich gemacht.
          Wie in Punkt 3 beschreiben alles deinstalliert.
          Super dennoch lief irgendwie auch nach Reboot node .. Mh..
          Also habe ich alles was mit node zu finden war komplett Manuell gelöscht.
          Ausser was unter iobroker war.

          Nach Reboot hatte ich dann auch kein node mehr. puh...
          Dann node neu installiert und schon war alles richtig.
          ok hab dann noch ein
          npm rebuild
          durchlaufen lassen.

          Jetzt ist alles Super..

          Nur falls jemand das auch mal hat 😢

          cu Deta

          1 Reply Last reply Reply Quote 0
          • P
            passuff last edited by passuff

            @deta sagte in node js:

            ach Reboot hatte ich dann auch kein node mehr. puh...
            Dann node neu installiert und schon war alles richtig.

            bei node -v

            bekomme ich "v10.16.1"

            bei nodejs -v

            bekomme ich "v10.16.2"

            Wie kann das sein? Habe gerade nach Anleitung ein update der nodejs durchgeführt...

            Homoran 1 Reply Last reply Reply Quote 0
            • P
              passuff last edited by passuff

              niemand? Habe gerade das update auf 10.16.3 gemacht. Leider keine Besserung..

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

                @passuff sagte in node js:

                @deta sagte in node js:

                ach Reboot hatte ich dann auch kein node mehr. puh...
                Dann node neu installiert und schon war alles richtig.

                bei node -v

                bekomme ich "v10.16.1"

                bei nodejs -v

                bekomme ich "v10.16.2"

                Wie kann das sein?

                Dann hast du node zweimal (in unterschiedlichen Verzeichnissen) installiert.

                arteck 1 Reply Last reply Reply Quote 0
                • arteck
                  arteck Developer Most Active @Homoran last edited by

                  @deta

                  wo ist es

                  ls -l /usr/local/bin/node*
                  ls -l /usr/bin/node*
                  
                  P 1 Reply Last reply Reply Quote 0
                  • D
                    deta Most Active last edited by

                    Ich habe erst mal es deinstalliert.
                    Dann gesucht
                    updatedb
                    locate node*
                    Dann alles gelöscht was mit node in den Verzeichnissen ist komplett.
                    Dann neu installiert
                    dann funktionierte es bei mir.

                    cu Deta

                    1 Reply Last reply Reply Quote 0
                    • P
                      passuff @arteck last edited by

                      @arteck

                      root@IoBroker-VM-Debian:~# ls -l /usr/local/bin/node*
                      -rwxr-xr-x 1 root staff 41137456 Aug  5 21:48 /usr/local/bin/node
                      root@IoBroker-VM-Debian:~# ls -l /usr/bin/node*
                      -rwxr-xr-x 1 root root 41142280 Aug 15 20:50 /usr/bin/node
                      lrwxrwxrwx 1 root root       24 Aug 11 23:26 /usr/bin/nodejs -> /etc/alternatives/nodejs
                      

                      Ich werde beide Verzeichnisse löschen...

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

                        @passuff
                        Das Update ist (laut Datum) die Datei /usr/bin/node. Lösche einfach die ältere Datei und ersetze sie durch einen Symlink.

                        sudo rm /usr/local/bin/node
                        sudo ln -s /usr/bin/node /usr/local/bin/node
                        sudo ln -s /usr/bin/node /usr/bin/nodejs 
                        
                        1 Reply Last reply Reply Quote 0
                        • P
                          passuff last edited by passuff

                          @paul53 sagte in node js:

                          sudo rm /usr/local/bin/node
                          sudo ln -s /usr/bin/node /usr/local/bin/node
                          sudo ln -s /usr/bin/node /usr/bin/nodejs

                          Hattest du in deiner ersten version ein Fehler? iobroker startet nicht mehr...Log ist leer...

                          1 Reply Last reply Reply Quote 0
                          • P
                            passuff last edited by

                            curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
                            sudo apt-get install -y nodejs
                            
                            root@IoBroker-VM-Debian:~# node -v
                            -bash: node: Kommando nicht gefunden.
                            root@IoBroker-VM-Debian:~# nodejs -v
                            -bash: nodejs: Kommando nicht gefunden.
                            root@IoBroker-VM-Debian:~#
                            

                            Was nun?

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

                              @passuff
                              Was ergibt ?

                              ls -l /usr/local/bin/node*
                              ls -l /usr/bin/node*
                              
                              1 Reply Last reply Reply Quote 0
                              • P
                                passuff last edited by

                                @paul53 sagte in node js:

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

                                Ich habe ein Backup der VM eingespielt. Zurück auf Start. Es sind nun wieder zwei Versionen von node installiert:

                                root@IoBroker-VM-Debian:~# ls -la /dev/serial/by-id/
                                ls: Zugriff auf '/dev/serial/by-id/' nicht möglich: Datei oder Verzeichnis nicht gefunden
                                root@IoBroker-VM-Debian:~# ls -l /usr/local/bin/node*
                                -rwxr-xr-x 1 root staff 41137456 Aug  5 21:48 /usr/local/bin/node
                                root@IoBroker-VM-Debian:~# ls -l /usr/bin/node*
                                -rwxr-xr-x 1 root root 41137368 Aug  6 18:02 /usr/bin/node
                                lrwxrwxrwx 1 root root       24 Aug 11 23:26 /usr/bin/nodejs -> /etc/alternatives/nodejs
                                root@IoBroker-VM-Debian:~#
                                
                                
                                paul53 1 Reply Last reply Reply Quote 0
                                • paul53
                                  paul53 @passuff last edited by paul53

                                  @passuff
                                  Nun hast Du wieder den Zustand wie im ersten Post.

                                  Was ergibt ?

                                  /usr/bin/node -v
                                  
                                  1 Reply Last reply Reply Quote 0
                                  • P
                                    passuff last edited by

                                    @paul53 sagte in node js:

                                    sudo rm /usr/local/bin/node
                                    sudo ln -s /usr/bin/node /usr/local/bin/node
                                    sudo ln -s /usr/bin/node /usr/bin/nodejs

                                    genau. Soll ich es erneut mit folgendem versuchen? :

                                    sudo rm /usr/local/bin/node
                                    sudo ln -s /usr/bin/node /usr/local/bin/node
                                    sudo ln -s /usr/bin/node /usr/bin/nodejs 
                                    
                                    paul53 1 Reply Last reply Reply Quote 0
                                    • paul53
                                      paul53 @passuff last edited by paul53

                                      @passuff sagte:

                                      Soll ich es erneut mit folgendem versuchen?

                                      Was ergibt ?

                                      /usr/bin/node -v
                                      /usr/local/bin/node -v
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        passuff last edited by passuff

                                        root@IoBroker-VM-Debian:~# /usr/bin/node -v
                                        v10.16.2
                                        root@IoBroker-VM-Debian:~# /usr/bin/nodejs -v
                                        v10.16.2
                                        root@IoBroker-VM-Debian:~#

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

                                          @passuff
                                          Versuche nochmal

                                          sudo rm /usr/local/bin/node
                                          sudo ln -s /usr/bin/node /usr/local/bin/node
                                          node -v
                                          

                                          Der nodejs-Link stört nicht, da ohnehin nicht verwendet.

                                          1 Reply Last reply Reply Quote 0
                                          • P
                                            passuff last edited by

                                            @paul53 sagte in node js:

                                            sudo rm /usr/local/bin/node
                                            sudo ln -s /usr/bin/node /usr/local/bin/node
                                            node -v

                                            root@IoBroker-VM-Debian:~# sudo rm /usr/local/bin/node
                                            root@IoBroker-VM-Debian:~# sudo ln -s /usr/bin/node /usr/local/bin/node
                                            root@IoBroker-VM-Debian:~# node -v
                                            v10.16.2
                                            root@IoBroker-VM-Debian:~#
                                            
                                            
                                            paul53 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

                                            448
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            node
                                            7
                                            34
                                            1838
                                            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