Skip to content
  • Home
  • Recent
  • Tags
  • 0 Unread 0
  • Categories
  • Unreplied
  • Popular
  • 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

  • Default (No Skin)
  • No Skin
Collapse
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. Update Node-js V4.x auf V6.x

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    22
    1
    1.2k

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

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.5k

Update Node-js V4.x auf V6.x

Scheduled Pinned Locked Moved ioBroker Allgemein
98 Posts 21 Posters 22.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • apollon77A Offline
    apollon77A Offline
    apollon77
    wrote on last edited by
    #41

    bei node 0.10, 0.12 und 4.x ist ein npm 2.x "dabei". Das 3er npm erst ab node 6.x

    Da nopm 1 damit nirgends mehr relevant ist das doppelte rauswerfen?

    @Bluefox: habs mal geändert. Siehe js-controller Pull Request

    Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

    • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
    • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
    1 Reply Last reply
    0
    • greyhoundG Offline
      greyhoundG Offline
      greyhound
      wrote on last edited by
      #42

      Habe wegen diverser Probleme meine node-Version von 7.4 (siehe http://forum.iobroker.net/viewtopic.php?f=8&t=4953auf 6.9.5 zurückgestellt und dann das reinstall.sh durchlaufen lassen.

      Dabei laufe ich bei mehreren Adaptern/Modulen auf folgenden Fehler:

         SUCCES iobroker.owntracks
      iobroker.core@0.1.0 /opt/iobroker
      └── iobroker.ping@1.2.0
      
         SUCCES iobroker.ping
      
      > usb@1.2.0 install /opt/iobroker/node_modules/usb
      > node-pre-gyp install --fallback-to-build
      
      node-pre-gyp ERR! Tried to download: https://github.com/tessel/node-usb/releases/download/1.2.0/usb_bindings-v1.2.0-node-v48-linux-arm.tar.gz
      node-pre-gyp ERR! Pre-built binaries not found for usb@1.2.0 and node@6.9.5 (node-v48 ABI) (falling back to source compile with node-gyp)
      make: Entering directory '/opt/iobroker/node_modules/usb/build'
      . . . 
      
      

      Aber auch ein build aus den Sourcen schlägt fehl.

      Ursache ist, dass es in dem Repo kein Paket für node v6.9 gibt?

      Ist euch das Problem bekannt und habt ihr einen Workaround dafür?

      Anderseits frage ich mich, warum so viele Adapter eine Abhängigkeit zu USB haben. Z. B. bekomme ich selbigen Fehler auch beim heutigen Update von icons-open-icon-library-png

      npm install https://github.com/ioBroker/ioBroker.icons-open-icon-library-png/tarball/master --production --prefix "/opt/iobroker" (System call)
      node-pre-gyp
       ERR! Tried to download: https://github.com/tessel/node-usb/releases/download/1.2.0/usb_bindings-v1.2.0-node-v48-linux-arm.tar.gz node-pre-gyp ERR! Pre-built binaries not found for usb@1.2.0 and node@6.9.5 (node-v48 ABI) (falling back to source compile with node-gyp) 
      
      ../libusb/libusb/os/linux_udev.c:40:21: fatal error: libudev.h: No such file or directory #include <libudev.h>^
      compilation terminated.
      ...</libudev.h> 
      

      ioBroker auf ODROID-XU4 / Influx u. a. auf FUJITSU D3400-B, Celeron G3900, 16 GB RAM / CCU2 / Nuki

      1 Reply Last reply
      0
      • frankjokeF Offline
        frankjokeF Offline
        frankjoke
        wrote on last edited by
        #43

        greyhound,

        Ich würde 7 nur für Tests einsetzten aber hatte mit 4 und 6 auch schon ähnliche Probleme.

        Die Probleme verschwanden bei mir sobald ich Adapter nur von den npm-repos (also npm install iobroker.adapter und nicht npm install von_git…..) gemacht habe.

        Noch schlechter war's wenn ich git clones gemacht habe um die Adapter lokal zu bearbeiten/debuggen/und wieder auf upzudaten, dann konnte ich nichts mehr installieren bis ich das Verzeichnis in node_modules gelöscht hab.

        Habe nach downgrade von 6 auf 4 auch noch ein Problem gehabt dass ich alle npm caches löschen musste und auch ioBroker+Adapter neu installieren musste (komplettes node_modules löschen).

        Frank,

        NUC's, VM's und Raspi's unter Raspian, Ubuntu und Debian zum Testen.
        Adapter die ich selbst beigesteuert habe: BMW, broadlink2, radar2, systeminfo, km200, xs1 und einige im Anmarsch!

        1 Reply Last reply
        0
        • apollon77A Offline
          apollon77A Offline
          apollon77
          wrote on last edited by
          #44

          @greyhound:

          ../libusb/libusb/os/linux_udev.c:40:21: fatal error: libudev.h: No such file or directory #include <libudev.h>^

          compilation terminated.

          …</libudev.h> `

          Das liegt an sich nicht an node 6.x/7.x … installiere mal

          apt-get install libusb-1.0-0.dev libudev-dev
          

          Dann sollte das Problem weg sein!

          Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

          • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
          • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
          1 Reply Last reply
          0
          • greyhoundG Offline
            greyhoundG Offline
            greyhound
            wrote on last edited by
            #45

            Danke für den Hinweis, das hatte ich schon probiert, es kommt aber immer folgender Fehler:

            The following packages have unmet dependencies:
             libudev-dev : Depends: libudev1 (= 215-17+deb8u6) but 230-7~bpo8+2 is to be installed
            E: Unable to correct problems, you have held broken packages.
            
            

            Aber

            apt-get remove libudev1
            

            und ein anschließendes

            apt-get install libudev-dev
            

            Haben das Problem zumindest gelöst.

            ioBroker auf ODROID-XU4 / Influx u. a. auf FUJITSU D3400-B, Celeron G3900, 16 GB RAM / CCU2 / Nuki

            1 Reply Last reply
            0
            • greyhoundG Offline
              greyhoundG Offline
              greyhound
              wrote on last edited by
              #46

              @greyhound:

              Aber

              apt-get remove libudev1
              

              und ein anschließendes

              apt-get install libudev-dev
              

              Haben das Problem zumindest gelöst. `
              aber leider nur bis zum nächsten reboot. Musste dann ziemlich umständlich wieder die alten Packages auf das Image kopieren und neu installieren.

              Gruß

              GH

              ioBroker auf ODROID-XU4 / Influx u. a. auf FUJITSU D3400-B, Celeron G3900, 16 GB RAM / CCU2 / Nuki

              1 Reply Last reply
              0
              • apollon77A Offline
                apollon77A Offline
                apollon77
                wrote on last edited by
                #47

                hä ?!

                Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                1 Reply Last reply
                0
                • greyhoundG Offline
                  greyhoundG Offline
                  greyhound
                  wrote on last edited by
                  #48

                  ach ja,

                  vergaß wohl das wichtigste, mit dem

                  apt-get remove libudev1
                  Remove: libudev1:armhf (230-7~bpo8+2), libdevmapper1.02.1:armhf (1.02.90-2.2+deb8u1), initramfs-tools:armhf (0.120+deb8u2), systemd-sysv:armhf (230-7~bpo8+2), libcryptsetup4:armhf (1.6.6-5), systemd:armhf (230-7~bpo8+2), dmsetup:armhf (1.02.90-2.2+deb8u1), libbluetooth3:armhf (5.23-2+b1), libbluetooth-dev:armhf (5.23-2+b1), udev:armhf (230-7~bpo8+2), bluez:armhf (5.23-2+b1), libusb-1.0-0:armhf (1.0.19-1), usbutils:armhf (007-2), bluetooth:armhf (5.23-2)
                  
                  

                  wird leider etwas mehr entfernt als ich dachte. Und mit

                  apt-get install libudev-dev
                  Install: libudev1:armhf (215-17+deb8u6, automatic), libdevmapper1.02.1:armhf (1.02.90-2.2+deb8u1, automatic), libcryptsetup4:armhf (1.6.6-5, automatic), dmsetup:armhf (1.02.90-2.2+deb8u1, automatic)
                  

                  weniger wieder installiert.

                  Damit fehlte dann so einiges für USB, Bluetooth und auch der systemd. Ohne den systemd startet bei meinem odroid XU4 das Netzwerk nicht mehr, kein eth0.

                  ioBroker auf ODROID-XU4 / Influx u. a. auf FUJITSU D3400-B, Celeron G3900, 16 GB RAM / CCU2 / Nuki

                  1 Reply Last reply
                  0
                  • AlCalzoneA Offline
                    AlCalzoneA Offline
                    AlCalzone
                    Developer
                    wrote on last edited by
                    #49

                    @Blackmike:

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

                    Genauso habe ich am Wochenende Versucht, meinen Pi von NodeJS 0.10.22 auf 6.X zu aktualisieren. apt-get war aber der Meinung, dass ich doch lieber 0.10.29 will, obwohl ich explizit eine andere Version angegeben habe.

                    Gelöst habe ich es dann mit dem "n"-Paket:

                    sudo npm install -g n
                    sudo n lts
                    

                    War wesentlich unkomplizierter und hat auf Anhieb funktioniert.

                    Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                    1 Reply Last reply
                    0
                    • HomoranH Do not disturb
                      HomoranH Do not disturb
                      Homoran
                      Global Moderator Administrators
                      wrote on last edited by
                      #50

                      @AlCalzone:

                      apt-get war aber der Meinung, dass ich doch lieber 0.10.29 will `
                      ist das ein Pi1?

                      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 Reply Last reply
                      0
                      • AlCalzoneA Offline
                        AlCalzoneA Offline
                        AlCalzone
                        Developer
                        wrote on last edited by
                        #51

                        Nein, ein Pi2, den ich nach Anleitung aus dem Forum zuvor von Wheezy auf Jessie geupdated habe.

                        Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                        1 Reply Last reply
                        0
                        • frankjokeF Offline
                          frankjokeF Offline
                          frankjoke
                          wrote on last edited by
                          #52

                          Ah ja, original Jessie gibt noch immer 0.1x bei und du hast sicher nicht

                          curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -

                          oder

                          curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -

                          gemacht um die nodejs-source für apt-get auf 6.x oder 4.x umzuistellen.

                          ioBroker basis läuft auf allen aber es gibt einige Adapter die nur ab 4.x laufen.

                          Frank,

                          NUC's, VM's und Raspi's unter Raspian, Ubuntu und Debian zum Testen.
                          Adapter die ich selbst beigesteuert habe: BMW, broadlink2, radar2, systeminfo, km200, xs1 und einige im Anmarsch!

                          1 Reply Last reply
                          0
                          • AlCalzoneA Offline
                            AlCalzoneA Offline
                            AlCalzone
                            Developer
                            wrote on last edited by
                            #53

                            Doch, eben das habe ich gemacht (siehe mein vorletzter Post mit der Problembeschreibung).

                            Node 6.7 läuft einwandfrei, wollte sich aber eben nicht per apt-get installieren lassen.

                            Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                            1 Reply Last reply
                            0
                            • S Offline
                              S Offline
                              swordfisch
                              wrote on last edited by
                              #54

                              bekomme nach dem ich mein node-js von 4 auf 6 gewechselt habe mein iobroker nicht wieder ans laufen kann mir wer helfen????

                              ! root@iOBroker:/opt/iobroker# ./reinstall.sh
                              ! module.js:540
                              ! throw err;
                              ! ^
                              ! Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                              ! at Function.Module._resolveFilename (module.js:538:15)
                              ! at Function.Module._load (module.js:468:25)
                              ! at Function.Module.runMain (module.js:684:10)
                              ! at startup (bootstrap_node.js:187:16)
                              ! at bootstrap_node.js:608:3

                              ioBroker hab ich zumindest teilweise wieder ans laufen bekommen

                              aber funktionieren tut es immer noch nicht richtig

                              ! host.iOBroker 2018-01-23 22:19:19.970 info iobroker exit 25
                              ! host.iOBroker 2018-01-23 22:19:19.967 error iobroker host.iOBroker Cannot install iobroker.radar: 254
                              ! host.iOBroker 2018-01-23 22:19:19.965 info iobroker npm ERR! /root/.npm/_logs/2018-01-23T21_19_19_942Z-debug.log
                              ! host.iOBroker 2018-01-23 22:19:19.965 info iobroker npm ERR! A complete log of this run can be found in:
                              ! host.iOBroker 2018-01-23 22:19:19.965 info iobroker
                              ! host.iOBroker 2018-01-23 22:19:19.938 info iobroker npm ERR! enoent This is related to npm not being able to find a file.npm ERR! enoent
                              ! host.iOBroker 2018-01-23 22:19:19.937 info iobroker ERR! enoent ENOENT: no such file or directory, rename '/opt/iobroker/node_modules/npm/node_modules/dezalgo/node_modules/asap' -> '/opt/iobroker/node_modules/npm/node_modules/dezalgo/node_mod
                              ! host.iOBroker 2018-01-23 22:19:19.936 info iobroker errno -2npm ERR! syscall rename npm
                              ! host.iOBroker 2018-01-23 22:19:19.936 info iobroker ERR!
                              ! host.iOBroker 2018-01-23 22:19:19.935 info iobroker
                              ! host.iOBroker 2018-01-23 22:19:19.931 info iobroker npm
                              ! host.iOBroker 2018-01-23 22:19:19.931 info iobroker ENOENT
                              ! host.iOBroker 2018-01-23 22:19:19.930 info iobroker code
                              ! host.iOBroker 2018-01-23 22:19:19.929 info iobroker
                              ! host.iOBroker 2018-01-23 22:19:19.929 info iobroker ERR!
                              ! host.iOBroker 2018-01-23 22:19:19.928 info iobroker
                              ! host.iOBroker 2018-01-23 22:19:19.927 info iobroker npm
                              ! host.iOBroker 2018-01-23 22:19:19.926 info iobroker /opt/iobroker/node_modules/npm/node_modules/dezalgo/node_modules/asap
                              ! host.iOBroker 2018-01-23 22:19:19.926 info iobroker path
                              ! host.iOBroker 2018-01-23 22:19:19.925 info iobroker
                              ! host.iOBroker 2018-01-23 22:19:19.925 info iobroker ERR!
                              ! host.iOBroker 2018-01-23 22:19:19.924 info iobroker
                              ! host.iOBroker 2018-01-23 22:19:19.923 info iobroker npm
                              ! host.iOBroker 2018-01-23 22:19:11.779 info iobroker npm install iobroker.radar –production --prefix "/opt/iobroker" (System call)
                              ! host.iOBroker 2018-01-23 22:19:11.485 info iobroker add radar
                              ! host.iOBroker 2018-01-23 22:18:57.471 info Update repository "default" under "http://download.iobroker.net/sources-dist.json"

                              grüße swordfisch

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                swordfisch
                                wrote on last edited by
                                #55

                                ! root@iOBroker:/opt/iobroker# npm cache clean
                                ! npm ERR! As of npm@5, the npm cache self-heals from corruption issues and data extracted from the cache is guaranteed to be valid. If you want to make sure everything is consistent, use 'npm cache verify' instead.
                                ! npm ERR!
                                ! npm ERR! If you're sure you want to delete the entire cache, rerun this command with –force.
                                ! npm ERR! A complete log of this run can be found in:
                                ! npm ERR! /root/.npm/_logs/2018-01-23T22_02_57_440Z-debug.log

                                kann mein ioBroker zwar starten aber viel Adapter gehen nicht mehr bzw installieren sich nicht neu wer kann helfen?

                                ! root@iOBroker:/opt/iobroker# npm i
                                ! npm ERR! path /opt/iobroker/node_modules/npm/node_modules/dezalgo/node_modules/asap
                                ! npm ERR! code ENOENT
                                ! npm ERR! errno -2
                                ! npm ERR! syscall rename
                                ! npm ERR! enoent ENOENT: no such file or directory, rename '/opt/iobroker/node_modules/npm/node_modules/dezalgo/node_modules/asap' -> '/opt/iobroker/node_modules/npm/node_modules/dezalgo/node_modules/.asap.DELETE'
                                ! npm ERR! enoent This is related to npm not being able to find a file.
                                ! npm ERR! enoent
                                ! npm ERR! A complete log of this run can be found in:
                                ! npm ERR! /root/.npm/_logs/2018-01-23T22_17_23_265Z-debug.log

                                grüße swordfisch

                                1 Reply Last reply
                                0
                                • eric2905E Offline
                                  eric2905E Offline
                                  eric2905
                                  wrote on last edited by
                                  #56

                                  Wie es aussieht, hast Du nom5 installiert.

                                  Es ist bekannt, das es damit bzgl. ioBroker Probleme gibt und es nicht supported ist.

                                  Wenn Du npm5 drauf hast, mach ein Downgrade auf npm4.

                                  Gruß,

                                  Eric

                                  Roses are red, violets are blue,

                                  if I listen to metal, my neighbours do too

                                  1 Reply Last reply
                                  0
                                  • eric2905E Offline
                                    eric2905E Offline
                                    eric2905
                                    wrote on last edited by
                                    #57

                                    Nachtrag:

                                    Was bezweckst Du mit dem Aufruf „npm i“ (im zweiten Log?

                                    Gruß,

                                    Eric

                                    Roses are red, violets are blue,

                                    if I listen to metal, my neighbours do too

                                    1 Reply Last reply
                                    0
                                    • S Offline
                                      S Offline
                                      swordfisch
                                      wrote on last edited by
                                      #58

                                      @eric2905:

                                      Wie es aussieht, hast Du nom5 installiert.

                                      Es ist bekannt, das es damit bzgl. ioBroker Probleme gibt und es nicht supported ist.

                                      Wenn Du npm5 drauf hast, mach ein Downgrade auf npm4.

                                      Gruß,

                                      Eric `
                                      Wie mache ich das?

                                      Den Befehl hatte ich irgendwo von Google…

                                      Grüße swordfisch

                                      1 Reply Last reply
                                      0
                                      • BuZZyB Offline
                                        BuZZyB Offline
                                        BuZZy
                                        wrote on last edited by
                                        #59
                                        npm install -g npm@4
                                        ````Wobei dann npm 4 installiert wird.. hinter dem @ kommt die Version die installiert werden soll. ;)
                                        
                                        Gruß
                                        1 Reply Last reply
                                        0
                                        • eric2905E Offline
                                          eric2905E Offline
                                          eric2905
                                          wrote on last edited by
                                          #60

                                          Hi,

                                          @swordfisch:

                                          Wie mache ich das? `

                                          Mach bitte erst mal (in der Konsole)

                                          node -v
                                          npm -v
                                          

                                          und poste das Ergebnis.

                                          @swordfisch:

                                          Den Befehl hatte ich irgendwo von Google… `
                                          Oha, bester Weg, ioBroker zu schrotten …. :-)

                                          Schau mal hier ==> https://docs.npmjs.com/cli/install

                                          Gruß,

                                          Eric

                                          Roses are red, violets are blue,

                                          if I listen to metal, my neighbours do too

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          Support us

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

                                          718

                                          Online

                                          32.5k

                                          Users

                                          81.7k

                                          Topics

                                          1.3m

                                          Posts
                                          Community
                                          Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                          ioBroker Community 2014-2025
                                          logo
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Home
                                          • Recent
                                          • Tags
                                          • Unread 0
                                          • Categories
                                          • Unreplied
                                          • Popular
                                          • GitHub
                                          • Docu
                                          • Hilfe