Navigation

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

    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

    Nodejs v18.12.1

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

      @thomas-braun sagte in Nodejs v18.12.1:

      @jan1

      Dann hast du aber nicht die aktuelle LTS 22.04 sondern die Zwischenversion 22.10. an Haken gehabt. Die kommt in der Tat mit nodejs18 daher.

      Aber die verbietet sich von alleine als Basis für einen Server. Die leben ja nur 9 Monate.

      OK, das erklärt das schon mal. Ubuntu ist eben etwas neu und mein erster Versuch war mit der LTS, der auch bei der Node Installation schief lief. Das war dann der Grund warum ich auf die nächste Version gewechselt habe. Ist ja schnell neu aufgesetzt und wenn Du der Meinung bist, dass man bei der LTS die Node sauber auf 16 bekommt, dann bügle ich die morgen noch mal drauf.

      @Krisiun
      die Pfade sind kein Problem:

      jan@beelink:~$ nodejs -v && node -v && npm -v && which nodejs && which node && which npm
      v18.12.1
      v18.12.1
      8.19.2
      /usr/bin/nodejs
      /usr/bin/node
      /usr/bin/npm
      
      
      
      Thomas Braun 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @crunchip last edited by

        @crunchip

        Jau, bin am Händie. ☺️

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

          @jan1 sagte in Nodejs v18.12.1:

          dass man bei der LTS die Node sauber auf 16 bekommt

          Aber ganz sicher.
          Auch auf kinetic bekäme man das hin, ist aber kniffliger. Musst du die 16er pinnen.

          J 2 Replies Last reply Reply Quote 0
          • Krisiun
            Krisiun last edited by

            Die meldung habe ich bekommen....

            root@Marek2:~# apt policy nodejs
            nodejs:
              Installed: 16.18.1-deb-1nodesource1
              Candidate: 16.18.1-deb-1nodesource1
              Version table:
             *** 16.18.1-deb-1nodesource1 500
                    500 https://deb.nodesource.com/node_16.x focal/main amd64 Packages
                    100 /var/lib/dpkg/status
                 12.22.9~dfsg-1ubuntu3 500
                    500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
            N: Ignoring file 'nodesource.list.save.1' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
            N: Ignoring file 'nodesource.list.save.2' in directory '/etc/apt/sources.list.d/' as it has an invalid filename extension
            
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • J
              Jan1 @Thomas Braun last edited by

              @thomas-braun
              Wenn nicht, musst morgen mein Ubuntu Verständnis aufpolieren 🙂

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

                @krisiun

                Passt schon nicht focal ist nicht jammy.
                Die Releases müssen übereinstimmen. Und die nodesource.list existiert mehrfach im Pfad. Doubletten löschen.

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

                  @thomas-braun sagte in Nodejs v18.12.1:

                  @krisiun

                  Passt schon nicht focal ist nicht jammy.
                  Die Releases müssen übereinstimmen. Und die nodesource.list existiert mehrfach im Pfad. Doubletten löschen.

                  Dass sie mehrfach existieren habe ich auch schon gemerkt. Dann schauen wir mal morgen weiter. Gute Nacht

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

                    @thomas-braun sagte in Nodejs v18.12.1:

                    @jan1 sagte in Nodejs v18.12.1:

                    dass man bei der LTS die Node sauber auf 16 bekommt

                    Aber ganz sicher.
                    Auch auf kinetic bekäme man das hin, ist aber kniffliger. Musst du die 16er pinnen.

                    Wie immer stimmt Deine Aussage. Hab die LTS version genommen und siehe da, Node 16 wird installiert. Der Unterschied zu Debian, man muss noch die Links manuell setzten:

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

                    Dann siehts auch gleich gut aus:

                    jan@beelink:~$ nodejs -v && node -v && npm -v && which nodejs && which node && which npm
                    v16.18.1
                    v16.18.1
                    8.19.2
                    /usr/bin/nodejs
                    /usr/bin/node
                    /usr/bin/npm
                    
                    1 Reply Last reply Reply Quote 0
                    • Krisiun
                      Krisiun @Thomas Braun last edited by

                      @thomas-braun sagte in Nodejs v18.12.1:

                      @jan1

                      Dann hast du aber nicht die aktuelle LTS 22.04 sondern die Zwischenversion 22.10. an Haken gehabt. Die kommt in der Tat mit nodejs18 daher.

                      Aber die verbietet sich von alleine als Basis für einen Server. Die leben ja nur 9 Monate.

                      Welcome to Ubuntu 22.04.1 LTS (GNU/Linux 4.4.0-19041-Microsoft x86_64)
                      

                      Das ist meine Version

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

                        @krisiun

                        sudo rm /etc/apt/sources.list.d/nodesource.list.save*
                        sudo rm /usr/local/bin/n*
                        sudo apt update
                        apt policy nodejs
                        uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                        
                        1 Reply Last reply Reply Quote 0
                        • Krisiun
                          Krisiun last edited by

                          root@Marek2:~# sudo rm /etc/apt/sources.list.d/nodesource.list.save*
                          root@Marek2:~# sudo rm /usr/local/bin/n*
                          root@Marek2:~# sudo apt update
                          Hit:1 http://archive.ubuntu.com/ubuntu jammy InRelease
                          Get:2 http://archive.ubuntu.com/ubuntu jammy-updates InRelease [114 kB]
                          Hit:3 https://dl.yarnpkg.com/debian stable InRelease
                          Hit:4 https://deb.nodesource.com/node_16.x focal InRelease
                          Get:5 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]
                          Get:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease [99.8 kB]
                          Get:7 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 Packages [726 kB]
                          Get:8 http://archive.ubuntu.com/ubuntu jammy-updates/main Translation-en [164 kB]
                          Get:9 http://archive.ubuntu.com/ubuntu jammy-updates/restricted amd64 Packages [445 kB]
                          Get:10 http://archive.ubuntu.com/ubuntu jammy-updates/universe amd64 Packages [756 kB]
                          Get:11 http://archive.ubuntu.com/ubuntu jammy-updates/universe Translation-en [125 kB]
                          Fetched 2541 kB in 7s (368 kB/s)
                          Reading package lists... Done
                          Building dependency tree... Done
                          Reading state information... Done
                          3 packages can be upgraded. Run 'apt list --upgradable' to see them.
                          root@Marek2:~# apt policy nodejs
                          nodejs:
                            Installed: 16.18.1-deb-1nodesource1
                            Candidate: 16.18.1-deb-1nodesource1
                            Version table:
                           *** 16.18.1-deb-1nodesource1 500
                                  500 https://deb.nodesource.com/node_16.x focal/main amd64 Packages
                                  100 /var/lib/dpkg/status
                               12.22.9~dfsg-1ubuntu3 500
                                  500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
                          root@Marek2:~# uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                          x86_64
                          Kein Docker
                          /usr/bin/nodejs
                          /usr/bin/node
                          /usr/bin/npm
                          v16.18.1
                          v16.18.1
                          8.19.2
                          4.0.23
                          root
                          root
                          
                          
                          /root
                          Hit:1 http://security.ubuntu.com/ubuntu jammy-security InRelease
                          Hit:2 https://deb.nodesource.com/node_16.x focal InRelease
                          Hit:3 https://dl.yarnpkg.com/debian stable InRelease
                          Hit:4 http://archive.ubuntu.com/ubuntu jammy InRelease
                          Hit:5 http://archive.ubuntu.com/ubuntu jammy-updates InRelease
                          Hit:6 http://archive.ubuntu.com/ubuntu jammy-backports InRelease
                          Reading package lists... Done
                          Building dependency tree... Done
                          Reading state information... Done
                          3 packages can be upgraded. Run 'apt list --upgradable' to see them.
                          nodejs:
                            Installed: 16.18.1-deb-1nodesource1
                            Candidate: 16.18.1-deb-1nodesource1
                            Version table:
                           *** 16.18.1-deb-1nodesource1 500
                                  500 https://deb.nodesource.com/node_16.x focal/main amd64 Packages
                                  100 /var/lib/dpkg/status
                               12.22.9~dfsg-1ubuntu3 500
                                  500 http://archive.ubuntu.com/ubuntu jammy/universe amd64 Packages
                          root@Marek2:~#
                          
                          

                          Hi Thomas
                          Das ist rausgekommen

                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Krisiun
                            Krisiun last edited by

                            Das war MEGA!!! die Version ist jetzt endlich die 16.18.1
                            Kann ich die Anleitung auch für die installation aufm Raspberry verwenden?
                            Da ist nämlich auch die v.18 drauf?

                            Thomas Braun J 2 Replies Last reply Reply Quote 0
                            • Thomas Braun
                              Thomas Braun Most Active @Krisiun last edited by

                              @krisiun sagte in Nodejs v18.12.1:

                              jammy

                              Jetzt schnappst du dir einen Editor und änderst in der Datei
                              /etc/apt/sources.list.d/nodesource.list
                              den Eintrag focal auf jammy

                              sudo nano /etc/apt/sources.list.d/nodesource.list
                              
                              Krisiun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @Krisiun last edited by Thomas Braun

                                @krisiun sagte in Nodejs v18.12.1:

                                Kann ich die Anleitung auch für die installation aufm Raspberry verwenden?

                                Kommt drauf an was da krumm ist.
                                Kann ja was anderes sein als hier.

                                Und lies dich ein, wie man in dem WSL Ding user anlegt und per 'sudo' arbeitet.

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

                                  Na ja die Nodejs version ist auch die 18.12.1 statt 16.18.1

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

                                    @krisiun

                                    Das heißt ja nix. Gibt zu viele Wege die da reinzuknallen.
                                    Jenachdem was da veranstaltet wurde muss man anders zurückturnen.

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

                                      Also muss ich wohl aufs glück probieren

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

                                        @krisiun
                                        Ich habe den kompletten Server samt IOBroker in 2 Stunden, und da war das meiste nur warten, neu aufgesetzt. Dann willst Du nun den Pi gerade biegen? Mach das frisch und versuchs diesmal einfach gleich richtig zu machen, wobei man beim Pi eh so gut wie nix falsch machen kann 😉

                                        Der IOBroker installiert Node16 automatisch, bei mir wars der erste Versuch mit Ubuntu und da ist eben ne Kleinigkeit anders. Danach lag das Problem an der nicht LTS Version des Ubuntu.

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

                                          Sorry ich muss mal weg. Aber später möchte ich das hier noch weiter klären wenn ihr nichts dagegen habt.
                                          Vielen Dank

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

                                            @krisiun

                                            Wie man das checkt weißt du ja nun.

                                            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

                                            521
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            10
                                            382
                                            42133
                                            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