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.
    • 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
            • Dutchman
              Dutchman Developer Most Active Administrators last edited by

              Eventuell noch einen reinstall.sh hinterher

              –-----------------------

              Send from mobile device

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

                @Dutchman:

                Eventuell noch einen reinstall.sh hinterher `
                Dazu sollte erst getestet werden, ob die Datei reinstall.sh in Linux-Format vorliegt.

                ls -l /opt/iobroker/reinstall.sh
                -rwxrwxrwx 1 root root 654 Aug 23 16:39 /opt/iobroker/reinstall.sh
                
                

                Wenn die Datei ca. 654 Byte groß ist, ist sie im Linux-Format; ist sie mehr als 680 Byte groß, muss sie erst in das Linux-Format gebracht werden, z.B. mit Notepad++. Dann ausführen

                cd /opt/iobroker
                sudo ./reinstall.sh
                iobroker start
                

                EDIT: Das würde ich aber nur veranstalten, wenn bei Start von ioBroker irgendein Error-Log erzeugt wird. Ansonsten gilt: Never touch a running system.

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

                  @paul53:

                  …muss sie erst in das Linux-Format gebracht werden, z.B. mit Notepad++. `
                  Das geht auch auf der Linux Kommandozeile:

                  mv /opt/iobroker/reinstall.sh /opt/iobroker/reinstall.dos
                  tr -d '\r' < /opt/iobroker/reinstall.dos > /opt/iobroker/reinstall.sh
                  
                  1 Reply Last reply Reply Quote 0
                  • W
                    wake2010 last edited by

                    pi@raspberrypi:/opt/iobroker $ iobroker start

                    Starting iobroker controller daemon…

                    iobroker controller daemon failed to start: Failed to write pidfile (EACCES)

                    Error: Failed to write pidfile (EACCES)

                    Reinstall.sh funktioniert auch nicht

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

                      Das sieht nach einem Zugriffsrechte-Problem aus (User 'pi'). Versuche es mal mit

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

                        UPS! :shock:

                        Leider startet ioBroker nicht mehr automatisch

                        1 Reply Last reply Reply Quote 0
                        • Dutchman
                          Dutchman Developer Most Active Administrators last edited by

                          @wake2010:

                          UPS! :shock:

                          Leider startet ioBroker nicht mehr automatisch `

                          Die Schritte befolgt für autostart welche ab ender der Installation stehen?

                          Die muss man manuell machen wenn man mit sudo und nicht root installiert

                          –-----------------------

                          Send from mobile device

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

                            @Dutchman:

                            @wake2010:

                            UPS! :shock:

                            Leider startet ioBroker nicht mehr automatisch `

                            Die Schritte befolgt für autostart welche ab ender der Installation stehen?

                            Die muss man manuell machen wenn man mit sudo und nicht root installiert `
                            Sorry aber das verstehe ich nicht?!

                            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

                            877
                            Online

                            32.0k
                            Users

                            80.4k
                            Topics

                            1.3m
                            Posts

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