Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Alte Nodejs Version verwendet nach Update

    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

    Alte Nodejs Version verwendet nach Update

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

      @cuci sagte in Alte Nodejs Version verwendet nach Update:

      ja ich weiß tut mir leid ich werde mich einen normalen User anlegen.

      Jetzt.

      Sorry wenn das jetzt eine blöde Frage ist, aber mit "Löschen" meinst du einfach das Verzeichnis direkt löschen? Und dann die Installation laut Anleitung nochmal durchführen?

      Nein. Einfach nur löschen.
      Als neuangelegter User mit sudo-Rechten:

      sudo rm /usr/local/bin/node
      sudo rm /usr/local/bin/npm
      
      C 1 Reply Last reply Reply Quote 0
      • C
        cuci @Thomas Braun last edited by

        @thomas-braun said in Alte Nodejs Version verwendet nach Update:

        sudo rm /usr/local/bin/npm

        Super es hat geklappt. Das war jetzt einfacher als ich dachte. Vielen lieben Dank.
        Hier auch der Beweis, dass ich ein User angelegt habe 😉 :

        broker@ioBroker:~$ node -v
        v16.18.0
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @cuci last edited by

          @cuci

          Was sagt

          sudo ln -s /usr/bin/node /usr/bin/nodejs
          uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
          

          nun?

          C 1 Reply Last reply Reply Quote 0
          • C
            cuci @Thomas Braun last edited by

            @thomas-braun
            sieht jetzt gut aus würde ich sagen:

            x86_64
            /usr/bin/nodejs
            /usr/bin/node
            /usr/bin/npm
            v16.18.0
            v16.18.0
            8.19.2
            4.0.23
            /home/broker
            [sudo] password for broker: 
            Hit:1 https://deb.nodesource.com/node_16.x jammy InRelease
            Hit:2 http://archive.ubuntu.com/ubuntu jammy InRelease
            Get:3 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
            Get:4 http://archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
            Fetched 224 kB in 1s (211 kB/s)    
            Reading package lists... Done
            Building dependency tree... Done
            Reading state information... Done
            All packages are up to date.
            nodejs:
              Installed: 16.18.0-deb-1nodesource1
              Candidate: 16.18.0-deb-1nodesource1
              Version table:
             *** 16.18.0-deb-1nodesource1 500
                    500 https://deb.nodesource.com/node_16.x jammy/main amd64 Packages
                    100 /var/lib/dpkg/status
                 12.22.9~dfsg-1ubuntu3 500
                    500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
            
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @cuci last edited by Thomas Braun

              @cuci

              Da fehlen aber Zeilen.
              Auf

              
              uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
              

              sollte eigentlich mehr kommen.

              C 1 Reply Last reply Reply Quote 0
              • C
                cuci @Thomas Braun last edited by

                @thomas-braun
                ich habs nochmal kopiert und eingegeben, das ist alles was ich als Ergebnis bekomme:

                broker@ioBroker:~$ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                x86_64
                /usr/bin/nodejs
                /usr/bin/node
                /usr/bin/npm
                v16.18.0
                v16.18.0
                8.19.2
                4.0.23
                broker
                broker sudo
                
                /home/broker
                Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
                Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
                Hit:3 https://deb.nodesource.com/node_16.x jammy InRelease
                Get:4 http://archive.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
                Fetched 224 kB in 1s (348 kB/s)  
                Reading package lists... Done
                Building dependency tree... Done
                Reading state information... Done
                All packages are up to date.
                nodejs:
                  Installed: 16.18.0-deb-1nodesource1
                  Candidate: 16.18.0-deb-1nodesource1
                  Version table:
                 *** 16.18.0-deb-1nodesource1 500
                        500 https://deb.nodesource.com/node_16.x jammy/main amd64 Packages
                        100 /var/lib/dpkg/status
                     12.22.9~dfsg-1ubuntu3 500
                        500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
                broker@ioBroker:~$ 
                
                Thomas Braun 1 Reply Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @cuci last edited by Thomas Braun

                  @cuci sagte in Alte Nodejs Version verwendet nach Update:

                  Jetzt steht auch mehr drin.
                  Der user 'broker' ist nicht in den üblichen Gruppen drin, denke ich.
                  Bei ubuntu kenne ich die aber nicht.
                  Wie hast du den user angelegt?

                  Mein Standarduser schaut z. B. so aus:

                  echad@chet:~ $ groups
                  echad adm dialout cdrom sudo audio video plugdev games users input render netdev gpio i2c spi iobroker
                  
                  C 1 Reply Last reply Reply Quote 0
                  • C
                    cuci @Thomas Braun last edited by

                    @thomas-braun

                    erstmal habe ich ihn nur der "sudo" Gruppe zugeordnet gehabt. Das muss ich mir dann jetzt auch erst näher anschauen.

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

                      @cuci

                      Und wie hast du den user jetzt angelegt? Eigentlich werden da bestimmte defaults von dem Programm zur Anlage gesetzt.

                      C 1 Reply Last reply Reply Quote 0
                      • C
                        cuci @Thomas Braun last edited by cuci

                        @thomas-braun
                        mit

                        adduser BENUTZERNAME
                        

                        da wurden aber keine Gruppen angefragt. Das habe ich dannach manuell hinzugefügt.

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

                          @cuci
                          https://wiki.ubuntuusers.de/adduser/

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

                          Support us

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

                          461
                          Online

                          31.9k
                          Users

                          80.1k
                          Topics

                          1.3m
                          Posts

                          2
                          14
                          483
                          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