Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Update npm und node.js

    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 npm und node.js

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

      Hier noch mal die Meldungen beim Updaten.

      $ ./iobroker upgrade mihome
      Update mihome from @1.0.7 to @1.1.1
      NPM version: 3.10.10
      npm install iobroker.mihome@1.1.1 --production --save --prefix "/opt/iobroker" (System call)
      ../authenticate_pam.cc:30:31: fatal error: security/pam_appl.h: Datei oder Verzeichnis nicht gefunden #include <security pam_appl.h="">
                                     ^
      
      compilation terminated.
      make: *** [Release/obj.target/authenticate_pam/authenticate_pam.o] Error 1
      gyp
       ERR! build error 
      gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
      gyp ERR! stack     at emitTwo (events.js:106:13)
      gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)
      
      gyp ERR! System Linux 4.9.35-v7+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
      gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pam
      gyp ERR! node -v v6.14.4
      gyp ERR! node-gyp -v v3.4.0
      gyp ERR! not ok 
      
      npm
       WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/package.json'npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/node_modules/choices-separator/package.json'
      npm WARN enoent ENOENT: no such file or directory, open '/opt/iobroker/node_modules/iobroker.discovery/node_modules/clone-deep/package.json'
      
      npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none was installed.npm WARN babel-eslint@5.0.4 requires a peer of eslint@<2.3.0 but none was installed.
      
      npm
       WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 (node_modules/authenticate-pam):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 install: `node-gyp rebuild`
      npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
      
      npm install --production (System call) in "/opt/iobroker/node_modules/iobroker.mihome"
      got /opt/iobroker/node_modules/iobroker.mihome/admin
      Update "system.adapter.mihome.0"
      upload [30] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/vibration.png icons/vibration.png image/png
      upload [20] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/sensor_ht.jpg icons/sensor_ht.jpg image/jpeg
      upload [19] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/sensor_cube_aqgl01.png icons/sensor_cube_aqgl01.png image/png
      upload [18] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/plug.png icons/plug.png image/png
      upload [17] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/natgas.png icons/natgas.png image/png
      upload [16] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/motion.png icons/motion.png image/png
      upload [15] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/magnet.png icons/magnet.png image/png
      upload [14] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/lock_v1.png icons/lock_v1.png image/png
      upload [13] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/lock_aq1.png icons/lock_aq1.png image/png
      upload [12] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/gateway.png icons/gateway.png image/png
      upload [11] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/curtain.png icons/curtain.png image/png
      upload [10] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/cube.png icons/cube.png image/png
      upload [9] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/ctrl_neutral2.png icons/ctrl_neutral2.png image/png
      upload [8] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/ctrl_neutral1.png icons/ctrl_neutral1.png image/png
      upload [7] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/ctrl_ln2.png icons/ctrl_ln2.png image/png
      upload [6] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/ctrl_ln1.png icons/ctrl_ln1.png image/png
      upload [5] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/ctrl_86plug_aq1.png icons/ctrl_86plug_aq1.png image/png
      upload [4] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/battery_v.png icons/battery_v.png image/png
      upload [3] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/battery_p.png icons/battery_p.png image/png
      upload [2] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/86sw2.png icons/86sw2.png image/png
      upload [1] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/86sw1.png icons/86sw1.png image/png
      upload [0] mihome.admin /opt/iobroker/node_modules/iobroker.mihome/admin/icons/86plug.png icons/86plug.png image/png
      Adapter "mihome" updated
      process exited with code 0</security>
      
      1 Reply Last reply Reply Quote 0
      • Röstkartoffel
        Röstkartoffel last edited by

        Ich möchte die nodejs und npm auf einen aktuellen Stand bringen, da es mit der jetzigen Node/Nodejs ein Problem beim Backitup-Adapter gibt.

        Dazu bin ich strikt nach der aktuellen Anleitung (http://www.iobroker.net/docu/?page_id=8323&lang=de) vorgegangen.

        Node und Nodejs zeigen nach den Updaten die richtigen Versionen an, npm aber leider nicht, die Abfrage npm -v ergibt immer noch die ursprüngliche Version 3.10.10.

        Selbst wenn ich die Anweisung von Github Nodesource https://github.com/nodesource/distribut … DME.md#deb für Debian benutze ` > Node.js v8.x:

        Using Debian, as root

        curl -sL https://deb.nodesource.com/setup_8.x | bash -

        apt-get install -y nodejs ` geht es immer noch nicht.

        Hier mal ein Auszug aus der Konsole:

        root@bananapipro:~# iobroker stop
        Stopping iobroker controller daemon...
        iobroker controller daemon stopped.
        Exit code for "killall.sh": 123
        root@bananapipro:~# npm i -g npm@6
        /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
        /usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
        /usr/lib
        └── npm@6.4.1
        
        root@bananapipro:~# cd /opt/iobroker
        root@bananapipro:/opt/iobroker# npm i -g npm@6
        /usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
        /usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
        /usr/lib
        └── npm@6.4.1
        
        root@bananapipro:/opt/iobroker# node -v
        v8.14.0
        root@bananapipro:/opt/iobroker# nodejs -v
        v8.14.0
        root@bananapipro:/opt/iobroker# npm -v
        3.10.10
        
        

        das ist meine Test-Konstellation auf einem BananaPiPro:

        npm 3.10.10

        nodejs 8.14.0

        node 8.14.0

        js-controller 1.4.2

        BackitUp 0.4.0

        ARMBIAN 5.64.181023 Debian GNU/Linux 9 (stretch) 4.14.85-sunxi

        apt update && sudo apt upgrade wurde selbstverständlich vorher und reinstall.sh zum Schluß gemacht, bei allen Anweisungen und Befehlen kam es zu keiner Fehlermeldung.

        Was habe ich vergessen oder was kann ich noch tun?

        Gruß

        Volker

        1 Reply Last reply Reply Quote 0
        • R
          RappiRN Most Active last edited by

          Du hast auch vorher die alte Version entfernt, so, wie in der Anleitung beschrieben? Das ist in deinem log nicht zu erkennen1

          Enrico

          1 Reply Last reply Reply Quote 0
          • Röstkartoffel
            Röstkartoffel last edited by

            Ja, so wie es in der Anleitung steht:

            iobroker stop
            
            apt-get --purge remove node nodejs
            
            apt-get autoremove
            
            reboot
            

            Das Log ist nach dem zweiten Reboot, vorher lief alles sorgenfrei und ohne Fehlermeldungen.

            Da sich die npm Version nicht geändert hatte, habe ich das manuell installiert und auch in beiden Pfaden, weil ich mir nicht sicher war, welcher der richtige ist.

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

              Du hast vermutlich noch Links auf die alte NPM-Version im Verzeichnis /usr/local/bin. Diese Links solltest Du ändern in

              /usr/local/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
              /usr/local/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
              
              

              Das kann man bequem mit WinSCP erledigen.

              1 Reply Last reply Reply Quote 0
              • R
                RappiRN Most Active last edited by

                Und du hast auch danach, bei der Abfrage der Versionen, keine Anzeige mehr bekommen?

                Notfalls die ganze Prozedur nochmal durchführen!

                Enrico

                1 Reply Last reply Reply Quote 0
                • Röstkartoffel
                  Röstkartoffel last edited by

                  @Enrico:

                  Doch, ich habe noch den Cursor wieder bekommen und konnte ganz normal weiterarbeiten. Ich habe das nur nicht mit kopiert.

                  @paul53:

                  Ich habe den Verknüpfungslink geändert. Und nun steht unter der Versionsabfrage mit Putty auch npm 6.4.1. Danke, das war es.

                  ioBroker restartet und schon zeigt der Info-Adapter auch die Version an.

                  1826_info.jpg

                  Ich danke euch beiden ganz herzlich für die schnelle Hilfe.

                  Gruß

                  Volker

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

                    Hallo, liebe Forengemeinde,

                    habe nach der selben Anleitung wie Röstkartoffel nodejs geupdatet.

                    Hat auch alles soweit funktioniert. npm ist auf 6.4.1 und nodejs auf 8.15.0.

                    Nur ist jetzt der cluod-Adapter auf Status gelb. Im Log steht die Meldung " Error while connecting to cloud: Error: websocket error". Ist das nur ein Zufall und die Frre-Cloud momentan nicht erreichbar, oder kann beim Update etwas schiefgelaufen sein? Neustart des Adapter bringt jedenfalls keine Änderung.

                    Für Hinweise wäre ich dankbar.

                    Gruß

                    Armin

                    1 Reply Last reply Reply Quote 0
                    • dslraser
                      dslraser Forum Testing Most Active last edited by

                      @wolf:

                      Hallo, liebe Forengemeinde,

                      habe nach der selben Anleitung wie Röstkartoffel nodejs geupdatet.

                      Hat auch alles soweit funktioniert. npm ist auf 6.4.1 und nodejs auf 8.15.0.

                      Nur ist jetzt der cluod-Adapter auf Status gelb. Im Log steht die Meldung " Error while connecting to cloud: Error: websocket error". Ist das nur ein Zufall und die Frre-Cloud momentan nicht erreichbar, oder kann beim Update etwas schiefgelaufen sein? Neustart des Adapter bringt jedenfalls keine Änderung.

                      Für Hinweise wäre ich dankbar.

                      Gruß

                      Armin `

                      scheinst nicht der Einzige zu sein. (ich habe eben gerade nodejs und npm Update gemacht, bei mir ist alles grün)

                      viewtopic.php?f=22&t=19450

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

                        @dslraser:

                        scheinst nicht der Einzige zu sein. (ich habe eben gerade nodejs und npm Update gemacht, bei mir ist alles grün)

                        viewtopic.php?f=22&t=19450 `

                        Ja, danke! Ist jetzt auch wieder grün bei mir.

                        1 Reply Last reply Reply Quote 0
                        • L
                          LJ-Mic last edited by

                          Kein Plan mehr wie ich auf dem Beitrag gekommen bin und mein iobroker lebt schon länger nicht mehr, aber ich vermute das der Fehler in den Beitrag auch erwähnten Gründen liegt.

                          Bei mir schaut es aktuell so aus:

                          pi@pi01:~ $ npm -v
                          6.5.0
                          pi@pi01:~ $ node -v
                          v11.8.0
                          pi@pi01:~ $ nodejs -v
                          v8.11.1
                          
                          

                          Ich hab jetzt schon mehrmals gelesen das node und nodejs die gleiche Version haben sollten. Aber das hatte ich noch nie.

                          Natürlich die Sachen mit npm, node und nodejs gelöscht und neu installiert.

                          Updates gemacht usw.

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

                            bei mir sieht es derzeit wie folgt aus:

                            pi@Raspi-3BioB:~ $ npm -v
                            6.14.4
                            pi@Raspi-3BioB:~ $ node -v
                            v10.20.1
                            pi@Raspi-3BioB:~ $ nodejs -v
                            v10.20.1
                            
                            

                            Im INFO Tab steht "nodejs - empfohlene Version 12.x

                            Wie bekomme ich nodejs auf V 12?

                            Homoran Thomas Braun 2 Replies Last reply Reply Quote 0
                            • Homoran
                              Homoran Global Moderator Administrators @nieIP last edited by Homoran

                              @nieIP sagte in Update npm und node.js:

                              Dich gibt's auch noch 😉

                              Wie bekomme ich nodejs auf V 12?

                              rechts befindet sich eine rote Box u.a. mit einem Link zur Update-Anleitung ("Nodejs update")
                              dort bitte das 10.x gegen 12.x austauschen, sonst bleibt alles gleich

                              1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @nieIP last edited by

                                @nieIP Welches System läuft da?
                                Wenn irgendwas debian-basiertes da läuft am besten über 'apt' installieren.

                                apt policy nodejs
                                

                                liefert?

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

                                  @Thomas-Braun sagte in Update npm und node.js:

                                  Wenn irgendwas debian-basiertes da läuft am besten über 'apt' installieren.

                                  Sicher??
                                  da gibt es leider des öfteren Probleme mit den Versionen in den Repos der Distributionen.
                                  Deswegen gibt es ja extra den von mitr verlinkten Thread

                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Homoran last edited by

                                    @Homoran
                                    In der verlinkten Anleitung läuft das doch auch über apt. Das von nodesource geladene skript legt ein neues Repo an und dann wird das über apt reingezogen.

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

                                      @Thomas-Braun sorry - ja, aber das neue repo muss angelegt und nicht einfach das der Distro verwendet werden.

                                      Thomas Braun 1 Reply Last reply Reply Quote 0
                                      • Thomas Braun
                                        Thomas Braun Most Active @Homoran last edited by

                                        @Homoran Stimmt. Habe ich was anderes behauptet?

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

                                          @Thomas-Braun nö!
                                          Aber ich hatte was anderes gelesen 😳

                                          Thomas Braun 1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active @Homoran last edited by

                                            @Homoran
                                            Mit

                                            apt policy nodejs
                                            

                                            wollte ich nur sehen was da an Repos bereits angelegt ist. Bzw. ob da überhaupt ein debian oder artverwandes läuft.

                                            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

                                            708
                                            Online

                                            31.9k
                                            Users

                                            80.1k
                                            Topics

                                            1.3m
                                            Posts

                                            23
                                            91
                                            57053
                                            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