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 V4.x auf V6.x

    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

    Update Node-js V4.x auf V6.x

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

      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.

      1 Reply Last reply Reply Quote 0
      • S
        swordfisch last edited by

        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 Reply Quote 0
        • S
          swordfisch last edited by

          ! 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 Reply Quote 0
          • eric2905
            eric2905 last edited by

            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

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

              Nachtrag:

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

              Gruß,

              Eric

              1 Reply Last reply Reply Quote 0
              • S
                swordfisch last edited by

                @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 Reply Quote 0
                • BuZZy
                  BuZZy last edited by

                  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 Reply Quote 0
                  • eric2905
                    eric2905 last edited by

                    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

                    1 Reply Last reply Reply Quote 0
                    • S
                      swordfisch last edited by

                      @eric2905:

                      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 `

                      node -v

                      v8.9.4

                      npm -v

                      5.6.0

                      ok also ist npm5 drauf womit iobroker probleme hat

                      ja mit google kann man sich sicher ne menge zerschießen so wie in diesem fall mal sehen was es wird

                      wie kann ich jetzt auf npm 4 downgraden?

                      grüße swordfisch

                      1 Reply Last reply Reply Quote 0
                      • S
                        swordfisch last edited by

                        mein erster versuch war ja auch mich hier im forum über den wechsel von Node-js 4 auf 6 zu belesen aber irgendwie hat das nicht so funktioniert wie es sollte

                        grüße swordfisch

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

                          @BuZZy:

                          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 Reply Quote 0
                          • eric2905
                            eric2905 last edited by

                            Gib an der Konsole mal

                            npm install -g npm@4
                            

                            ein.

                            Hier ist auch ein ganzer Thread zum npm-Thema

                            ==> http://forum.iobroker.net/viewtopic.php?f=17&t=4853

                            Gruß,

                            Eric

                            Von unterwegs getippert

                            1 Reply Last reply Reply Quote 0
                            • S
                              swordfisch last edited by

                              @eric2905:

                              Gib an der Konsole mal

                              npm install -g npm@4
                              

                              ein.

                              Hier ist auch ein ganzer Thread zum npm-Thema

                              ==> http://forum.iobroker.net/viewtopic.php?f=17&t=4853

                              Gruß,

                              Eric

                              Von unterwegs getippert `

                              Danke das war mein Problem mit etwas mehr Fehlercode lesen und vorher beschäftigen hätte ich selber drauf kommen müssen aber manchmal ist man einfach viel zu eilig. Und beließt sich zu wenig und handelt zu schnell vielen Dank für die Hilfe und das lösen des Problems scheint alles zu funktionieren zumindest sind alle Adapter wieder gestartet

                              Vielen Dank

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

                                Mal fragen:

                                Wie ist denn heute die aktuelle Empfehlung welche Version man haben sollte?

                                Und wo finde ich darauf einen Hinweis auf der iobroker Homepage?

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

                                  Ob es einen Hinweis auf der Webseite gibt, muss ich mal nachschauen und ggf. nachtragen.

                                  Ist aber z.B. npm 5 auf dem System, gibt es mittlerweile eine Fehlermeldung am Anfang der Installation und diese bricht ab.

                                  Gruß,

                                  Eric

                                  Von unterwegs getippert

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

                                    OK.

                                    Denke ein Hinweis auf der Webseite (gut sichtbar) wäre nicht verkehrt.

                                    Wo stehe ich denn mit meinen Versionen:

                                    pi@pi-iobroker:~ $ npm -v
                                    2.15.11
                                    pi@pi-iobroker:~ $ node -v
                                    v4.8.7
                                    
                                    

                                    Habe auf meinem Host und Slave die gleichen laufen… und wenn ich mich richtig erinnere schon von Beginn an.

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

                                      @wendy2702:

                                      Wo stehe ich denn mit meinen Versionen `
                                      Nun ja, die Installationsanleitung auf der Webseite bringt Dir einen Node 6 und ein npm 4 (wenn ich mich nicht irre).

                                      Gruß,

                                      Eric

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

                                        Du irrst nicht.

                                        Wegen des Problems mit npm 5.x habe ich die Anleitung auf node v6 gelassen.

                                        nodejs v8 läuft nachmeinen Tests auch problemlos - aber mit npm v4

                                        Inzwischen hat apollon77 im Installer eine entsprechende Meldung mit Abbruch eingebaut, wenn npm 5 installiert ist.

                                        Gruß

                                        Rainer

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

                                          Hi Eric,

                                          ich habe damals (es gab noch nichts anderes) die "sehr kurze Anleitung" verwendet: http://www.iobroker.net/docu/?page_id=5634&lang=de

                                          Sehr kurze Debian-Anleitung
                                          node.js 4.x Installation:
                                          sudo apt-get update
                                          sudo apt-get upgrade
                                          sudo apt-get install curl build-essential
                                          sudo curl -sL https://deb.nodesource.com/setup_4.x | sudo bash -
                                          apt-get install -y nodejs
                                          
                                          Falls danach node -v nichts gibt, dann noch
                                          sudo ln -s /usr/bin/nodejs /usr/bin/node
                                          
                                          ioBroker installation:
                                          sudo mkdir /opt/iobroker
                                          sudo chmod 777 /opt/iobroker
                                          cd /opt/iobroker
                                          sudo npm install iobroker --unsafe-perm
                                          

                                          Da steht auch heute noch Node.js 4.x

                                          Lediglich in der etwas längeren Anleitung: http://www.iobroker.net/docu/?page_id=5106&lang=de

                                          Gibt es jetzt den hinweis mit Node.js 6.x

                                          ! ````
                                          Installation Node.js
                                          Diese Anleitung bezieht sich auf nodejs 6.x
                                          ! Die Nutzung von Nodejs 8.x wäre ebenfalls möglich, jedoch muss das dort mitgelieferte npm 5.x unbedingt auf v4.x downgegradet werden mit
                                          ! sudo npm install -g npm@4
                                          ! npm 5.x enthält noch einen Bug, der bei ioBroker zu massiven Problemen führt.
                                          !
                                          ! Kernel Update: sudo apt-get update && sudo apt-get upgrade
                                          Die alten node & node.js Versionen deinstallieren (bei Jessie Light nicht notwendig)
                                          apt-get --purge remove node
                                          apt-get --purge remove nodejs
                                          apt-get autoremove
                                          reboot
                                          als Root über Putty anmelden
                                          Node.js neu installieren für Raspberry 2/3
                                          curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
                                          sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev nodejs
                                          reboot
                                          Node.js neu installieren nur für Raspberry Pi1 (sollte es beim download zu einer Fehlermeldung kommen, bitte unter http://nodejs.org/dist/latest-v6.x/ die aktuelle Versionsnummer heraussuchen und in den Befehlen 1-3 ersetzen)
                                          wget http://nodejs.org/dist/latest-v6.x/node-v6.12.2-linux-armv6l.tar.gz
                                          tar -xvf node-v6.12.2-linux-armv6l.tar.gz
                                          cd node-v6.12.2-linux-armv6l
                                          sudo cp -R * /usr/local/
                                          sudo ln -s /usr/local/bin/node /usr/bin/nodejs
                                          als Root über Putty anmelden
                                          Nach der Installation muss das Kommando “node -v” die Version von node.js zurückgeben. Falls es nicht passiert, dann sollte noch ein Alias erzeugt werden:
                                          sudo ln -s /usr/local/bin/nodejs /usr/bin/node
                                          Installation ioBroker
                                          ioBroker installieren
                                          sudo mkdir /opt/iobroker
                                          sudo chmod 777 /opt/iobroker
                                          cd /opt/iobroker
                                          sudo npm install iobroker --unsafe-perm
                                          je nach OS muss ioBroker evtl. noch mit sudo iobroker start gestertet werden
                                          ioBroker über IP im Webbrowser aufrufen: http://IP-Adresse:8081

                                          
                                          Deshalb bin ich mir halt nicht sicher ob ich noch aktuell bin oder ein upgrade gemacht werden muss bzw. ab wann ich den zwingend machen muss.
                                          
                                          Gruß
                                          
                                          Mirko
                                          1 Reply Last reply Reply Quote 0
                                          • eric2905
                                            eric2905 last edited by

                                            Die Anleitung muss dringend angepasst (oder gelöscht) werden.

                                            Der erste Punkt im Menü lautet „Linux Schnellstart (z.B. ….)“ - das ist die korrekte (die, die Du gewählt hast, steht ganz unten).

                                            Gruß,

                                            Eric

                                            Von unterwegs getippert

                                            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

                                            885
                                            Online

                                            31.9k
                                            Users

                                            80.2k
                                            Topics

                                            1.3m
                                            Posts

                                            21
                                            98
                                            19597
                                            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