Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Diskussion zum HowTo nodejs-Installation und upgrade

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Diskussion zum HowTo nodejs-Installation und upgrade

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @wendy2702 last edited by

      @wendy2702

      Magst du mal den npm tree im Status 'jetzt' zeigen?
      Und vielleicht auch mal das ganze nodeJS-Gedöns?

      uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
      
      wendy2702 1 Reply Last reply Reply Quote 0
      • wendy2702
        wendy2702 @Thomas Braun last edited by

        @thomas-braun

        Sollte man die 8.15.1 installieren oder besser bei 8.11.0 bleiben?

        mirko@iobroker:/opt/iobroker$ npm ls | grep -E 'github|ERR'
        [sudo] password for mirko:
        npm notice
        npm notice New minor version of npm available! 8.11.0 -> 8.15.1
        npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.15.1
        npm notice Run npm install -g npm@8.15.1 to update!
        npm notice
        
        
        mirko@iobroker:/opt/iobroker$ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
        x86_64
        /usr/bin/nodejs
        /usr/bin/node
        /usr/bin/npm
        v16.16.0
        v16.16.0
        8.11.0
        mirko
        /opt/iobroker
        Hit:1 http://deb.debian.org/debian bullseye InRelease
        Hit:2 http://deb.debian.org/debian-security bullseye-security InRelease
        Hit:3 http://deb.debian.org/debian bullseye-updates InRelease
        Hit:4 https://deb.nodesource.com/node_10.x bullseye InRelease
        Hit:5 https://deb.nodesource.com/node_12.x bullseye InRelease
        Hit:6 https://deb.nodesource.com/node_14.x bullseye InRelease
        Hit:7 https://deb.nodesource.com/node_16.x bullseye InRelease
        Reading package lists... Done
        Building dependency tree... Done
        Reading state information... Done
        All packages are up to date.
        nodejs:
          Installed: 16.16.0-deb-1nodesource1
          Candidate: 16.16.0-deb-1nodesource1
          Version table:
         *** 16.16.0-deb-1nodesource1 500
                500 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages
                100 /var/lib/dpkg/status
             14.20.0-deb-1nodesource1 500
                500 https://deb.nodesource.com/node_14.x bullseye/main amd64 Packages
             12.22.12-deb-1nodesource1 500
                500 https://deb.nodesource.com/node_12.x bullseye/main amd64 Packages
             12.22.12~dfsg-1~deb11u1 500
                500 http://deb.debian.org/debian-security bullseye-security/main amd64 Packages
             12.22.5~dfsg-2~11u1 500
                500 http://deb.debian.org/debian bullseye/main amd64 Packages
             10.24.1-deb-1nodesource1 500
                500 https://deb.nodesource.com/node_10.x bullseye/main amd64 Packages
        mirko@iobroker:/opt/iobroker$
        
        
        Thomas Braun 1 Reply Last reply Reply Quote 0
        • Thomas Braun
          Thomas Braun Most Active @wendy2702 last edited by

          @wendy2702 sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

          Sollte man die 8.15.1 installieren oder besser bei 8.11.0 bleiben?

          Bitte immmer bei den Versionen aus dem 'Gesamtpaket' nodejs bleiben. Das hat mal jemand passend zusammengestellt, das sollte funktionieren.

          Kannst du mal ein pures/ungefiltertes npm ls zeigen, bitte?

          wendy2702 1 Reply Last reply Reply Quote 0
          • wendy2702
            wendy2702 @Thomas Braun last edited by

            @thomas-braun

            mirko@iobroker:/opt/iobroker$ npm ls
            iobroker.inst@2.0.3 /opt/iobroker
            +-- @peter-murray/hue-bridge-model@2.0.4 extraneous
            +-- colors@1.4.0
            +-- fs-extra@7.0.1
            +-- fs@0.0.1-security extraneous
            +-- iobroker.admin@5.4.9
            +-- iobroker.alias-manager@1.2.6
            +-- iobroker.bidirectional-counter@2.0.8
            +-- iobroker.birthdays@2.1.0
            +-- iobroker.daswetter@3.1.3
            +-- iobroker.dwd@2.8.3
            +-- iobroker.email@1.1.3
            +-- iobroker.enigma2@1.3.0
            +-- iobroker.feiertage@1.1.0
            +-- iobroker.flot@1.11.0
            +-- iobroker.fritzbox@0.5.0
            +-- iobroker.harmony@1.2.2
            +-- iobroker.history@2.1.4
            +-- iobroker.hm-rega@3.0.40
            +-- iobroker.hm-rpc@1.15.12
            +-- iobroker.homeconnect@1.0.1
            +-- iobroker.hue-extended@2.0.0
            +-- iobroker.hue@3.7.0
            +-- iobroker.ical@1.13.1
            +-- iobroker.icons-addictive-flavour-png@0.1.0
            +-- iobroker.icons-fatcow-hosting@0.1.0
            +-- iobroker.icons-icons8@0.0.1
            +-- iobroker.icons-material-png@0.1.0
            +-- iobroker.icons-material-svg@0.1.0
            +-- iobroker.icons-mfd-png@1.1.0
            +-- iobroker.icons-mfd-svg@1.1.0
            +-- iobroker.icons-open-icon-library-png@0.1.3
            +-- iobroker.icons-ultimate-png@1.0.1
            +-- iobroker.influxdb@2.6.3
            +-- iobroker.iqontrol@2.0.1
            +-- iobroker.javascript@5.8.5
            +-- iobroker.js-controller@4.0.23
            +-- iobroker.js2fs@0.1.5
            +-- iobroker.linux-control@1.1.5
            +-- iobroker.mihome-vacuum@3.6.0
            +-- iobroker.modbus@4.0.4
            +-- iobroker.musiccast@0.2.2
            +-- iobroker.nut@1.5.1
            +-- iobroker.ping@1.5.3
            +-- iobroker.pushover@3.0.0
            +-- iobroker.sayit@1.12.6
            +-- iobroker.shuttercontrol@1.4.14
            +-- iobroker.simple-api@2.7.0
            +-- iobroker.smartcontrol@1.2.1
            +-- iobroker.socketio@6.1.5
            +-- iobroker.systeminfo@0.3.1
            +-- iobroker.tankerkoenig@2.1.1
            +-- iobroker.telegram@1.13.0
            +-- iobroker.trashschedule@2.0.3
            +-- iobroker.vis-bars@0.1.4
            +-- iobroker.vis-canvas-gauges@0.1.5
            +-- iobroker.vis-colorpicker@1.2.0
            +-- iobroker.vis-fancyswitch@1.1.0
            +-- iobroker.vis-google-fonts@1.0.3
            +-- iobroker.vis-hqwidgets@1.2.0
            +-- iobroker.vis-icontwo@0.87.0
            +-- iobroker.vis-inventwo@3.3.3
            +-- iobroker.vis-jqui-mfd@1.0.12
            +-- iobroker.vis-justgage@1.0.2
            +-- iobroker.vis-keyboard@0.0.2
            +-- iobroker.vis-material-webfont@0.0.3
            +-- iobroker.vis-material@0.1.3
            +-- iobroker.vis-materialdesign@0.5.9
            +-- iobroker.vis-metro@1.2.0
            +-- iobroker.vis-plumb@1.0.2
            +-- iobroker.vis-rgraph@0.0.2
            +-- iobroker.vis-timeandweather@1.2.2
            +-- iobroker.vis@1.4.15
            +-- iobroker.weatherunderground@3.4.2
            +-- iobroker.web@5.2.2
            +-- iobroker.ws@2.1.1
            +-- iobroker.yahka@0.13.1
            +-- iobroker.yamaha@0.5.3
            +-- iobroker.yr@5.3.0
            +-- iobroker@2.0.3
            +-- semver@5.7.1
            +-- setimmediate@1.0.5 extraneous
            +-- simple-ssh@1.1.0 extraneous
            `-- yargs@7.1.0
            
            
            Thomas Braun 1 Reply Last reply Reply Quote 0
            • Thomas Braun
              Thomas Braun Most Active @wendy2702 last edited by

              @wendy2702

              Ja, das schaut gut aus. Nichts wesentliches falsch.
              Man könnte noch per npm prune etwas Kosmetik betreiben, ist aber nicht unbedingt erforderlich, kann auch so bleiben.

              1 Reply Last reply Reply Quote 1
              • Holger Etzel
                Holger Etzel last edited by

                Hallo,
                ich wollte von 14 auf 16 updaten. Bevor ich beginne habe ich

                npm ls | grep -E 'github|ERR'
                

                eingegeben und folgendes zurückerhalten

                ├─┬ iobroker.fully-tablet-control@0.3.6-1 (github:xXBJXx/ioBroker.fully-tablet-c                              ontrol#a4a68744209d6a6c58d58187fd03200970e2d002)
                ├─┬ iobroker.gartenbewaesserung@0.0.7 (github:TA2k/ioBroker.gartenbewaesserung#7                              6130e64b48e99221f1759be0caf03a40e05141b)
                │ │ │ ├── github-from-package@0.0.0
                ├─┬ iobroker.pollenflug@1.0.6 (github:schmupu/ioBroker.pollenflug#4ae37990c9c6bc                              f9ae5db5bfa0c9fba70b005e7f)
                ├─┬ iobroker.rtspStream@0.0.2 (github:dbweb-ch/ioBroker.rtspStream#3891a8545b556                              6946b89b6f4dbfeac1e2a6527a5)
                │ ├─┬ samsungtv@0.0.0 (git+https://git@github.com/luca-saggese/samsungtv.git#7fc                              20107455414e2afb94022682e0787e8635550)
                ├─┬ iobroker.sourceanalytix@0.4.8 (github:iobroker-community-adapters/ioBroker.s                              ourceanalytix#6c3391b555135ccf164b9bcc914c0335a63d1102)
                │ └─┬ syno@3.0.0 (git+https://github.com/MeisterTR/syno.git#0104a973d33fe332aa6b                              1ab5be7fe8c57d3c68b0)
                ├─┬ iobroker.time-switch@2.2.1 (github:walli545/ioBroker.time-switch#f24abb3a0b4                              16bc21e7315e7cfa10ba3261f4bfe)
                │   ├── github-url-from-git@1.5.0
                │   ├─┬ new-github-release-url@1.0.0
                ├─┬ iobroker.vis-knob@0.0.1 (github:ioBroker/ioBroker.vis-knob#a1dc9e3758987a921                              c893c0d63497e742d5c3526)
                ├── iobroker.vis-materialdesign@0.3.15 (github:Scrounger/ioBroker.vis-materialde                              sign#3d969de982c45a19d0f05246219d73831a54ed9b)
                ├─┬ iobroker.vuplus@0.1.1 (github:vader722/ioBroker.vuplus#dcbdb2ad24c10f49a67ee                              6d699980650744a9b48)
                  │ │ │   ├── github-from-package@0.0.0 deduped
                
                

                ist das problematisch hier das update zu starten?

                gruß
                Holger

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

                  @holger-etzel

                  Ich würde so viele der github-Installationen wie möglich 'ordentlich' über ein Repository installieren.

                  Holger Etzel 1 Reply Last reply Reply Quote 0
                  • Holger Etzel
                    Holger Etzel @Thomas Braun last edited by

                    @thomas-braun said in Diskussion zum HowTo nodejs-Installation und upgrade:

                    Repository

                    Wie findet man hierzu die richtigen versionen. Entweder stelle ich mich zu doof an oder es gibt wirklich keine ordentlichen versionen

                    gruß
                    Holger

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

                      @holger-etzel

                      Hier findet man was sich in den Repos tummelt:

                      http://download.iobroker.net/list.html

                      1 Reply Last reply Reply Quote 0
                      • H
                        HGlab last edited by

                        Hallo Leute,
                        ich habe beim Upgrade von NodeJS14 auf NodeJS16 Probleme Adapter zu installieren bzw. upzudaten.
                        Fehler (unabhängig vom Adapter) sieht wie folgt aus:

                        iobroker upgrade socketio@4.2.0 --debug
                        Would you like to reinstall version 4.2.0 of socketio now? [(y)es, (n)o]: y
                        Update socketio from @4.2.0 to @4.2.0
                        NPM version: 8.15.0
                        Installing iobroker.socketio@4.2.0... (System call)
                        npm ERR! code ENOTEMPTY
                        npm ERR! syscall rename
                        npm ERR! path /opt/iobroker/node_modules/ajv
                        npm ERR! dest /opt/iobroker/node_modules/.ajv-Kze9IpmC
                        npm ERR! errno -39
                        npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/ajv' -> '/opt/iobroker/node_modules/.ajv-Kze9IpmC'
                        
                        npm ERR! A complete log of this run can be found in:
                        npm ERR!     /home/iobroker/.npm/_logs/2022-09-05T10_23_30_998Z-debug-0.log
                        host.ioBroker Cannot install iobroker.socketio@4.2.0: 217
                        

                        Mit NodeJS14 gab es keine Probleme.
                        Die Installation sieht jedoch aus meiner Sicht ok aus

                        uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && whoami && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                        x86_64
                        /usr/bin/nodejs
                        /usr/bin/node
                        /usr/bin/npm
                        v16.17.0
                        v16.17.0
                        8.15.0
                        hglab
                        /opt/iobroker/node_modules
                        OK:1 http://at.archive.ubuntu.com/ubuntu bionic InRelease
                        OK:2 http://ppa.launchpad.net/certbot/certbot/ubuntu bionic InRelease
                        OK:3 http://at.archive.ubuntu.com/ubuntu bionic-updates InRelease
                        OK:4 http://at.archive.ubuntu.com/ubuntu bionic-backports InRelease
                        OK:5 https://deb.nodesource.com/node_14.x bullseye InRelease
                        OK:6 https://deb.nodesource.com/node_16.x bullseye InRelease
                        Holen:7 http://security.ubuntu.com/ubuntu bionic-security InRelease [88,7 kB]
                        Es wurden 88,7 kB in 1 s geholt (90,8 kB/s).
                        Paketlisten werden gelesen... Fertig
                        Abhängigkeitsbaum wird aufgebaut.
                        Statusinformationen werden eingelesen.... Fertig
                        Alle Pakete sind aktuell.
                        nodejs:
                          Installiert:           16.17.0-deb-1nodesource1
                          Installationskandidat: 16.17.0-deb-1nodesource1
                          Versionstabelle:
                         *** 16.17.0-deb-1nodesource1 500
                                500 https://deb.nodesource.com/node_16.x bullseye/main amd64 Packages
                                100 /var/lib/dpkg/status
                             14.20.0-deb-1nodesource1 500
                                500 https://deb.nodesource.com/node_14.x bullseye/main amd64 Packages
                             8.10.0~dfsg-2ubuntu0.4 500
                                500 http://at.archive.ubuntu.com/ubuntu bionic-updates/universe amd64 Packages
                             8.10.0~dfsg-2ubuntu0.2 500
                                500 http://security.ubuntu.com/ubuntu bionic-security/universe amd64 Packages
                             8.10.0~dfsg-2 500
                                500 http://at.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
                        

                        Hab keine Idee woran es liegen kann. Danke für euren Support!

                        Glasfaser Thomas Braun mcm1957 3 Replies Last reply Reply Quote 0
                        • Glasfaser
                          Glasfaser @HGlab last edited by

                          @hglab sagte in Diskussion zum HowTo nodejs-Installation und upgrade:

                          npm ERR! ENOTEMPTY: directory not empty, rename '/opt/iobroker/node_modules/ajv' -> '/opt/iobroker/node_modules/.ajv-Kze9IpmC'

                          https://forum.iobroker.net/topic/57337/fehler-25-bei-adapter-install-update-mit-npm8

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

                            @hglab

                            Du fährst aber einen Mix aus ubuntu/bionic und debian/bullseye.
                            Stell das richtig!

                            H 1 Reply Last reply Reply Quote 0
                            • mcm1957
                              mcm1957 @HGlab last edited by

                              @hglab
                              Da das Exit 25 Thema derzeit - sowit ich weiß - noch untersucht wird, darf ich dir ein paar Fragen stellen?
                              -) Hattest du bei der Installation (Upgrade) irgendwelche Auffälligkeiten. Gab es z.B. Netzwerkprobleme / TCP Resets oder ähnliches?
                              -) Hast du ev. in mehreren Sessions irgendwas gemacht während des Upgrades?
                              -) War der ioBroker während des Upgrades gestoppt?

                              H 1 Reply Last reply Reply Quote 0
                              • H
                                HGlab @mcm1957 last edited by

                                @mcm57

                                -) Hattest du bei der Installation (Upgrade) irgendwelche Auffälligkeiten. Gab es z.B. Netzwerkprobleme / TCP Resets oder ähnliches? --> nein, keine Auffälligkeiten
                                -) Hast du ev. in mehreren Sessions irgendwas gemacht während des Upgrades? --> nein
                                -) War der ioBroker während des Upgrades gestoppt? --> ja, war gestoppt

                                mcm1957 1 Reply Last reply Reply Quote 0
                                • mcm1957
                                  mcm1957 @HGlab last edited by

                                  @hglab
                                  Danke

                                  1 Reply Last reply Reply Quote 0
                                  • H
                                    HGlab @Thomas Braun last edited by

                                    @thomas-braun said in Diskussion zum HowTo nodejs-Installation und upgrade:

                                    bionic

                                    danke, updated

                                    #node 16
                                    deb [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bionic  main
                                    deb-src [signed-by=/usr/share/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x bionic main
                                    
                                    
                                    Thomas Braun 1 Reply Last reply Reply Quote 0
                                    • H
                                      HGlab @Glasfaser last edited by

                                      @glasfaser
                                      worked! Danke für den raschen Support!

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

                                        @hglab

                                        Die Quelle für 14 auch angepasst oder hast du die komplett rausgekickt?

                                        H mac89muc 2 Replies Last reply Reply Quote 0
                                        • H
                                          HGlab @Thomas Braun last edited by

                                          @thomas-braun
                                          ebenso angepasst 😉

                                          1 Reply Last reply Reply Quote 0
                                          • mac89muc
                                            mac89muc @Thomas Braun last edited by

                                            @thomas-braun

                                            ich habe meinen iobroker auf einem Macmini mit macOS Mojave laufen.
                                            Die Installation von iobroker auf einem Mac ist ja eh schon etwas komplizierter, da sich die Installation was Pfade und Benutzer angeht von der linux Installation unterscheiden.
                                            Ich habe node aktualisiert auf 16.17.0 inkl. NPM auf 8.15.0 - mittels des entsprechenden Installationspaketes von nodejs.org

                                            Im iob wird mir die korrekte Version angezeigt, ebenso wenn ich im Terminal node -v bzw. npm -v eingebe.

                                            Der iob läuft auch soweit, allerdings kann ich keine Updates mehr machen - die werden mir unter Adapter oder Info angezeigt, ich kann die Updates durchführen ohne Fehlermeldung allerdings tauchen die dann wieder unter Updates auf.

                                            Jetzt habe ich recherchiert, dass das häufig mit einem Node Update bzw. einem falschen Node update zusammenhängt.
                                            Da ich ja mit macOS unterwegs bin ist es leider für mich nicht ganz so einfach eine step by step Anleitung dazu zu finden. NPM und Node werden unter macOS z.B. automatisiert unter /usr/local/bin installiert mit dem Installer - wie bekomme ich die an die richtige Stelle - oder ist das Verzeichnis /usr/bin nur für linux Installationen das richtige?

                                            Viele Grüße

                                            Thomas Braun 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

                                            645
                                            Online

                                            31.6k
                                            Users

                                            79.6k
                                            Topics

                                            1.3m
                                            Posts

                                            nodejs
                                            91
                                            844
                                            172370
                                            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