Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Update Node.js

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.7k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.2k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.1k

Update Node.js

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
29 Beiträge 7 Kommentatoren 6.8k Aufrufe
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • HomoranH Nicht stören
    HomoranH Nicht stören
    Homoran
    Global Moderator Administrators
    schrieb am zuletzt editiert von
    #8

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

    Gruß

    Rainer

    kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

    Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

    der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

    1 Antwort Letzte Antwort
    0
    • paul53P Offline
      paul53P Offline
      paul53
      schrieb am zuletzt editiert von
      #9

      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.

      Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
      Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

      1 Antwort Letzte Antwort
      0
      • W Offline
        W Offline
        wake2010
        schrieb am zuletzt editiert von
        #10

        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 Antwort Letzte Antwort
        0
        • paul53P Offline
          paul53P Offline
          paul53
          schrieb am zuletzt editiert von
          #11

          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
          

          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

          1 Antwort Letzte Antwort
          0
          • W Offline
            W Offline
            wake2010
            schrieb am zuletzt editiert von
            #12

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

            v6.11.4

            1 Antwort Letzte Antwort
            0
            • paul53P Offline
              paul53P Offline
              paul53
              schrieb am zuletzt editiert von
              #13

              @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.

              Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
              Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

              1 Antwort Letzte Antwort
              0
              • W Offline
                W Offline
                wake2010
                schrieb am zuletzt editiert von
                #14

                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 Antwort Letzte Antwort
                0
                • paul53P Offline
                  paul53P Offline
                  paul53
                  schrieb am zuletzt editiert von
                  #15

                  @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
                  

                  Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                  Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                  1 Antwort Letzte Antwort
                  0
                  • W Offline
                    W Offline
                    wake2010
                    schrieb am zuletzt editiert von
                    #16

                    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 Antwort Letzte Antwort
                    0
                    • BluefoxB Offline
                      BluefoxB Offline
                      Bluefox
                      schrieb am zuletzt editiert von
                      #17

                      @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 Antwort Letzte Antwort
                      0
                      • W Offline
                        W Offline
                        wake2010
                        schrieb am zuletzt editiert von
                        #18

                        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 Antwort Letzte Antwort
                        0
                        • paul53P Offline
                          paul53P Offline
                          paul53
                          schrieb am zuletzt editiert von
                          #19

                          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
                          

                          Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                          Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                          1 Antwort Letzte Antwort
                          0
                          • W Offline
                            W Offline
                            wake2010
                            schrieb am zuletzt editiert von
                            #20

                            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 Antwort Letzte Antwort
                            0
                            • paul53P Offline
                              paul53P Offline
                              paul53
                              schrieb am zuletzt editiert von
                              #21

                              @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
                              

                              Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                              Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                              1 Antwort Letzte Antwort
                              0
                              • DutchmanD Offline
                                DutchmanD Offline
                                Dutchman
                                Developer Most Active Administrators
                                schrieb am zuletzt editiert von
                                #22

                                Eventuell noch einen reinstall.sh hinterher

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

                                Send from mobile device

                                1 Antwort Letzte Antwort
                                0
                                • paul53P Offline
                                  paul53P Offline
                                  paul53
                                  schrieb am zuletzt editiert von
                                  #23

                                  @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.

                                  Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                  Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                  1 Antwort Letzte Antwort
                                  0
                                  • paul53P Offline
                                    paul53P Offline
                                    paul53
                                    schrieb am zuletzt editiert von
                                    #24

                                    @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
                                    

                                    Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                    Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                    1 Antwort Letzte Antwort
                                    0
                                    • W Offline
                                      W Offline
                                      wake2010
                                      schrieb am zuletzt editiert von
                                      #25

                                      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 Antwort Letzte Antwort
                                      0
                                      • paul53P Offline
                                        paul53P Offline
                                        paul53
                                        schrieb am zuletzt editiert von
                                        #26

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

                                        sudo iobroker start
                                        

                                        Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                        Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                        1 Antwort Letzte Antwort
                                        0
                                        • W Offline
                                          W Offline
                                          wake2010
                                          schrieb am zuletzt editiert von
                                          #27

                                          UPS! :shock:

                                          Leider startet ioBroker nicht mehr automatisch

                                          1 Antwort Letzte Antwort
                                          0
                                          Antworten
                                          • In einem neuen Thema antworten
                                          Anmelden zum Antworten
                                          • Älteste zuerst
                                          • Neuste zuerst
                                          • Meiste Stimmen


                                          Support us

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

                                          362

                                          Online

                                          32.4k

                                          Benutzer

                                          81.5k

                                          Themen

                                          1.3m

                                          Beiträge
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Anmelden

                                          • Du hast noch kein Konto? Registrieren

                                          • Anmelden oder registrieren, um zu suchen
                                          • Erster Beitrag
                                            Letzter Beitrag
                                          0
                                          • Home
                                          • Aktuell
                                          • Tags
                                          • Ungelesen 0
                                          • Kategorien
                                          • Unreplied
                                          • Beliebt
                                          • GitHub
                                          • Docu
                                          • Hilfe