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 @sigi234 last edited by

      @sigi234 sagte in node js:

      https://forum.iobroker.net/topic/22867/how-to-node-js-für-iobroker-richtig-updaten

      Super daher hatte ich es ja! Und genau so gemacht. Da steht nix was mir in dieser Sache hilft.

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

        @sigi234
        Das was er will steht allerdings schon in der allgemeinen Doku.
        Check dee Versionen und entfernen bereits borhandener.

        Wobei ich Nodes eigentlich immer direkt über ein Linux Update hochziehe und das bis jetzt immer geklappt hat.

        1 Reply Last reply Reply Quote 0
        • sigi234
          sigi234 Forum Testing Most Active @sigi234 last edited by

          @sigi234 sagte in node js:

          https://forum.iobroker.net/topic/22867/how-to-node-js-für-iobroker-richtig-updaten

          Edit:

          https://www.iobroker.net/#de/documentation/install/linux.md

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

            Also noch mal sogar zwei mal durch die Doc gearbeitet. genau so wie ich es vorher schon gemacht hatte.
            Nun hab ich folgende Situation.

            root@rock:~# node -v
            v10.15.3
            root@rock:~# nodejs -v
            v10.16.2
            root@rock:~#

            root@rock:~# sudo apt-get install -y nodejs
            Reading package lists... Done
            Building dependency tree
            Reading state information... Done
            nodejs is already the newest version (10.16.2-1nodesource1).
            0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

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

            Ich weis nicht was ich noch machen soll.

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

              @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

              D 1 Reply Last reply Reply Quote 0
              • 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
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            951
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

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