Navigation

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

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Update Node.js

    This topic has been deleted. Only users with topic management privileges can see it.
    • apollon77
      apollon77 last edited by

      Was genau hast du versucht? Was waren die Ergebnisse?

      Das Update in dem Fall sollte per „sudo apt-get upgrade“ automatisch gehen …

      1 Reply Last reply Reply Quote 0
      • D
        dtp last edited by

        Vielleicht hilft http://forum.iobroker.net/viewtopic.php?f=8&t=7293&hilit=6.11&start=20#p76645 weiter.

        Gruß,

        Thorsten

        1 Reply Last reply Reply Quote 0
        • W
          wake2010 last edited by

          Sudo App-get habe habe ich bereits ausgeführt, trotzdem ergibt Node -v immer 4.3.2!

          1 Reply Last reply Reply Quote 0
          • W
            wake2010 last edited by

            Hier noch eine weitere Info

            sudo npm cache clean -f

            ERROR: npm is known not to run on Node.js v4.3.2

            Node.js 4 is supported but the specific version you're running has

            a bug known to break npm. Please update to at least ${rel.min} to use this

            version of npm. You can find the latest release of Node.js at https://nodejs.org/

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

              @apollon77:

              Das Update in dem Fall sollte per „sudo apt-get upgrade“ automatisch gehen … `
              So kenne ich das auch, aber hast du wirklich
              @wake2010:

              Sudo App-get … bereits ausgeführt ` ?

              Natürlich musst du vorher noch ein

              sudo apt-get update machen
              

              Poste mal bitte den output, den du bekommst, nachdem du durchgeführt hast

              sudo apt-get update
              sudo apt-get upgrade
              

              Bevor du das anschließende yes bestätigst

              Gruß

              Rainer

              1 Reply Last reply Reply Quote 0
              • W
                wake2010 last edited by

                pi@raspberrypi:~ $ sudo apt-get update
                Hit http://mirrordirector.raspbian.org jessie InRelease
                Hit http://archive.raspberrypi.org jessie InRelease
                Hit https://deb.nodesource.com jessie InRelease
                Hit http://mirrordirector.raspbian.org jessie/main armhf Packages
                Hit http://mirrordirector.raspbian.org jessie/contrib armhf Packages
                Hit http://mirrordirector.raspbian.org jessie/non-free armhf Packages
                Hit http://archive.raspberrypi.org jessie/main armhf Packages
                Hit http://mirrordirector.raspbian.org jessie/rpi armhf Packages
                Hit https://deb.nodesource.com jessie/main Sources 
                Hit https://deb.nodesource.com jessie/main armhf Packages
                Hit http://archive.raspberrypi.org jessie/ui armhf Packages
                Get:1 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
                Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en_GB
                Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
                Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
                Ign http://mirrordirector.raspbian.org jessie/main Translation-en
                Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
                Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
                Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en_GB
                Ign http://archive.raspberrypi.org jessie/main Translation-en_GB
                Ign http://archive.raspberrypi.org jessie/main Translation-en
                Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
                Ign http://archive.raspberrypi.org jessie/ui Translation-en_GB
                Ign http://archive.raspberrypi.org jessie/ui Translation-en
                Get:2 https://deb.nodesource.com jessie/main Translation-en [162 B]
                Get:3 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
                Get:4 https://deb.nodesource.com jessie/main Translation-en [162 B]
                Get:5 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
                Get:6 https://deb.nodesource.com jessie/main Translation-en [162 B]
                Get:7 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
                Get:8 https://deb.nodesource.com jessie/main Translation-en [162 B]
                Get:9 https://deb.nodesource.com jessie/main Translation-en_GB [162 B]
                Ign https://deb.nodesource.com jessie/main Translation-en_GB
                Get:10 https://deb.nodesource.com jessie/main Translation-en [162 B]
                Ign https://deb.nodesource.com jessie/main Translation-en
                Reading package lists... Done                      
                pi@raspberrypi:~ $ sudo apt-get upgrade
                Reading package lists... Done
                Building dependency tree       
                Reading state information... Done
                Calculating upgrade... Done
                0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
                pi@raspberrypi:~ $ node -v
                v4.3.2
                pi@raspberrypi:~ $ nodejs -v
                v6.11.4
                

                MOD-Edit by eric2905; Code-Tags gesetzt

                Bitte Logs & Co. immewr in Code-Tags setzen (ggf. aucgh Spoiler-Tags verwenden).

                Gruß,

                Eric

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

                  Dann hast du es irgendwie geschafft zwei Installationen von nodejs auf den Rechner zu bekommen

                  Gruß

                  Rainer

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

                    Um zu sehen, welche Version wo installiert wurde, gib bitte auf der Console ein

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

                    und poste das Ergebnis.

                    1 Reply Last reply Reply Quote 0
                    • W
                      wake2010 last edited by

                      pi@raspberrypi:~ $ ls -l /usr/local/bin/node*

                      -rwxr-xr-x 1 root staff 22144561 Feb 16 2017 /usr/local/bin/node

                      lrwxrwxrwx 1 root staff 44 May 26 03:34 /usr/local/bin/node-gyp -> ../lib/node_modules/node-gyp/bin/node-gyp.js

                      pi@raspberrypi:~ $ ls -l /usr/bin/node*

                      -rwxr-xr-x 1 root root 21515844 Oct 3 22:36 /usr/bin/node

                      lrwxrwxrwx 1 root root 24 Oct 22 14:33 /usr/bin/nodejs -> /etc/alternatives/nodejs

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

                        Du hast 3 Versionen installiert:

                        -rwxr-xr-x 1 root staff 22144561 Feb 16 2017 /usr/local/bin/node
                        -rwxr-xr-x 1 root root 21515844 Oct 3 22:36 /usr/bin/node
                        lrwxrwxrwx 1 root root 24 Oct 22 14:33 /usr/bin/nodejs -> /etc/alternatives/nodejs
                        

                        Um zu sehen, ob die Datei /usr/bin/node vom 3. Oktober aktuell ist, teste mal:

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

                          pi@raspberrypi:~ $ /usr/bin/node -v

                          v6.11.4

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

                            @wake2010:

                            /usr/bin/node -v

                            v6.11.4 `
                            Das sieht gut aus. Die alte Version /usr/local/bin/node schiebt sich im Suchpfad nach vorn und sollte gelöscht werden.

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

                            node -v sollte v6.11.4 und npm -v sollte 3.10.10 liefern.

                            1 Reply Last reply Reply Quote 0
                            • W
                              wake2010 last edited by

                              Leider ist dies die Rückmeldung

                              pi@raspberrypi:~ $ sudo rm /usr/local/bin/node

                              pi@raspberrypi:~ $ node -v

                              v6.11.4

                              pi@raspberrypi:~ $ npm -v

                              /usr/local/bin/npm: 2: exec: /usr/local/bin/node: not found

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

                                @wake2010:

                                pi@raspberrypi:~ $ npm -v

                                /usr/local/bin/npm: 2: exec: /usr/local/bin/node: not found `
                                Dann drängelt sich die alte NPM-Version im Suchpfad vor und muss auch gelöscht werden.

                                sudo rm /usr/local/bin/npm
                                npm -v
                                
                                1 Reply Last reply Reply Quote 0
                                • W
                                  wake2010 last edited by

                                  pi@raspberrypi:~ $ sudo rm /usr/local/bin/npm

                                  pi@raspberrypi:~ $ npm -v

                                  -bash: /usr/local/bin/npm: No such file or directorypi@raspberrypi:~ $

                                  Ich verzweifle!

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

                                    @wake2010:

                                    pi@raspberrypi:~ $ sudo rm /usr/local/bin/npm

                                    pi@raspberrypi:~ $ npm -v

                                    -bash: /usr/local/bin/npm: No such file or directorypi@raspberrypi:~ $

                                    Ich verzweifle! `

                                    iobroker stop
                                    apt-get --purge remove node
                                    apt-get --purge remove nodejs
                                    apt-get autoremove
                                    reboot
                                    
                                    curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
                                    sudo apt-get install -y build-essential python nodejs npm
                                    
                                    

                                    So?

                                    1 Reply Last reply Reply Quote 0
                                    • W
                                      wake2010 last edited by

                                      pi@raspberrypi:~ $ sudo apt-get install -y build-essential python nodejs npm

                                      Reading package lists… Done

                                      Building dependency tree

                                      Reading state information... Done

                                      build-essential is already the newest version.

                                      python is already the newest version.

                                      Some packages could not be installed. This may mean that you have

                                      requested an impossible situation or if you are using the unstable

                                      distribution that some required packages have not yet been created

                                      or been moved out of Incoming.

                                      The following information may help to resolve the situation:

                                      The following packages have unmet dependencies:

                                      nodejs : Conflicts: npm

                                      E: Unable to correct problems, you have held broken packages.

                                      pi@raspberrypi:~ $ node -v

                                      -bash: node: command not found

                                      pi@raspberrypi:~ $ npm -v

                                      -bash: npm: command not found

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

                                        nodejs wurde nicht installiert, weil
                                        @wake2010:

                                        The following packages have unmet dependencies:

                                        nodejs : Conflicts: npm

                                        E: Unable to correct problems, you have held broken packages. `
                                        Es scheint noch ein falsches NPM-Packet zu existieren ? Versuche nochmal:

                                        sudo apt-get purge node
                                        sudo apt-get purge nodejs
                                        sudo apt-get purge npm
                                        sudo apt-get autoremove
                                        sudo reboot
                                        

                                        Nach dem Einloggen

                                        curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
                                        sudo apt-get install -y nodejs
                                        node -v
                                        npm -v
                                        /usr/bin/node -v
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • W
                                          wake2010 last edited by

                                          pi@raspberrypi:~ $ node -v

                                          v6.11.5

                                          pi@raspberrypi:~ $ npm -v

                                          3.10.10

                                          pi@raspberrypi:~ $ /usr/bin/node -v

                                          v6.11.5

                                          Ich würde sagen es läuft!

                                          Wie starte ich ioBroker wieder? Der läuft nämlich nicht mehr.

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

                                            @wake2010:

                                            Wie starte ich ioBroker wieder? Der läuft nämlich nicht mehr. `

                                            iobroker start
                                            

                                            Um gleich zu testen, ob ioBroker automatisch startet:

                                            sudo reboot
                                            
                                            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

                                            723
                                            Online

                                            32.0k
                                            Users

                                            80.4k
                                            Topics

                                            1.3m
                                            Posts

                                            7
                                            29
                                            6164
                                            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