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.
    • Homoran
      Homoran Global Moderator Administrators last edited by

      @AlCalzone:

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

      Gruß

      Rainer

      1 Reply Last reply Reply Quote 0
      • AlCalzone
        AlCalzone Developer last edited by

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

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

          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.

          1 Reply Last reply Reply Quote 0
          • 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
                                            • First post
                                              Last post

                                            Support us

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

                                            850
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

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