Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Einsteigerfragen
    4. Installation
    5. ioBroker Installation npm Err!

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    ioBroker Installation npm Err!

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

      @thomas-braun

      pi@raspberrypi:~ $ uname -m && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && pwd && sudo apt-get update &> /dev/null && sudo apt-get update && apt-cache policy nodejs
      armv7l
      /usr/bin/nodejs
      /usr/bin/node
      /usr/bin/npm
      v16.19.0
      v16.19.0
      8.19.3
      4.0.23
      pi
      pi adm dialout cdrom sudo audio video plugdev games users input render netdev lpadmin gpio i2c spi iobroker
      tty
      /home/pi
      Hit:1 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
      Hit:2 http://archive.raspberrypi.org/debian bullseye InRelease
      Hit:3 https://deb.nodesource.com/node_16.x bullseye InRelease
      Reading package lists... Done
      nodejs:
        Installed: 16.19.0-deb-1nodesource1
        Candidate: 16.19.0-deb-1nodesource1
        Version table:
       *** 16.19.0-deb-1nodesource1 500
              500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
              100 /var/lib/dpkg/status
           12.22.12~dfsg-1~deb11u1 500
              500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
      pi@raspberrypi:~ $
      
      
      X 1 Reply Last reply Reply Quote 0
      • Thomas Braun
        Thomas Braun Most Active @Xerxes55 last edited by

        @xerxes55 sagte in ioBroker Installation npm Err!:

        Linux oder ioBroker?

        Der Paketmanager. Der wird auch eigentlich vom Installationsskript richtig gefüttert. Keine Ahnung was du da gemacht hast.

        X 1 Reply Last reply Reply Quote 0
        • X
          Xerxes55 @Xerxes55 last edited by

          @xerxes55
          Jetzt ist ales ok? Kann ich damit produktiv arbeiten?

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

            @xerxes55

            Sollte passen.

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

              @thomas-braun said in ioBroker Installation npm Err!:

              Keine Ahnung was du da gemacht hast.

              Ich habe schon mehrmals geschrieben: alles gemäß der Anleitung in dem Link am Anfang. Den Beitrag hast du auch selbst geschrieben! Bin kein Linux Fachmann!

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

                @xerxes55 sagte in ioBroker Installation npm Err!:

                Aber warum diese Problem? Ich die Installation strikt nach den Anleitung gemacht.

                da muss aber beteits eine alte nodejs vor dem Aufruf des Installers drauf gewesen sein,
                Deswegen wurde iobroker unvollständig installiert.

                @xerxes55 sagte in ioBroker Installation npm Err!:

                Wer installiert NodeJS. Linux oder ioBroker?

                Entweder du, oder wenn noch nichts drauf is installiert iobroker die momentan aktuelle Version.

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

                  @xerxes55 sagte in ioBroker Installation npm Err!:

                  Den Beitrag hast du auch selbst geschrieben!

                  Das weiß ich. Und daher weiß ich auch, dass es genau so auch funktioniert.

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

                    @thomas-braun
                    Ich habe die SD Karte komplett neu geschrieben, daher weiß ich nicht woher das kommt. Trotzdem vielen, vielen Dank!

                    1 Reply Last reply Reply Quote 0
                    • C
                      Chris982 last edited by

                      @thomas-braun
                      Hey, habe ein ähnliches Problem, wollte das updateaus dem iobroker machen aber irgendwas ist schief gelaufen.
                      Habe danach schon einiges versucht zu deinstallieren wie die node und iobroker aber jetzt geht gar nix mehr.
                      wenn ich über den installtions link den iobroker neu installieren will kommt:
                      Welcome to the ioBroker installer!
                      Installer version: 2022-12-09

                      You might need to enter your password a couple of times.
                      

                      ==========================================================================

                      ==========================================================================
                      Installing prerequisites (1/4)

                      OK:1 http://archive.raspberrypi.org/debian bullseye InRelease
                      OK:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease
                      OK:3 https://repos.influxdata.com/debian bullseye InRelease
                      OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease
                      OK:5 https://packages.grafana.com/enterprise/deb stable InRelease
                      Paketlisten werden gelesen... Fertig
                      Changing npm registry to https://registry.npmjs.org
                      npm ERR! builtins is not a function

                      npm ERR! A complete log of this run can be found in:
                      npm ERR! /home/pi/.npm/_logs/2022-12-21T18_56_11_280Z-debug-0.log
                      Installed gcc-c++

                      ==========================================================================
                      Creating ioBroker user and directory (2/4)

                      Created /etc/sudoers.d/iobroker
                      Directory /opt/iobroker created

                      ==========================================================================
                      Installing ioBroker (3/4)

                      npm ERR! builtins is not a function

                      npm ERR! A complete log of this run can be found in:
                      npm ERR! /home/pi/.npm/_logs/2022-12-21T18_56_16_582Z-debug-0.log

                      ==========================================================================
                      Finalizing installation (4/4)

                      Enabling autostart...
                      Autostart enabled!
                      Fixing directory permissions...

                      ==========================================================================

                      ioBroker was installed successfully
                      Open http://192.168.1.95 10.8.0.1:8081 in a browser and start configuring!
                      

                      ==========================================================================

                      You need to re-login before doing anything else on the console!

                      eine idee was ich machen kann? er ist definitv nicht mehr erreichbar

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

                        @chris982

                        Setz das in CodeTags.

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

                          @thomas-braun

                           Welcome to the ioBroker installer!
                              Installer version: 2022-12-09
                              
                              You might need to enter your password a couple of times.
                          
                          ==========================================================================
                          
                          
                          ==========================================================================
                              Installing prerequisites (1/4)
                          ==========================================================================
                          
                          OK:1 http://archive.raspberrypi.org/debian bullseye InRelease
                          OK:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease                   
                          OK:3 https://repos.influxdata.com/debian bullseye InRelease                        
                          OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease                       
                          OK:5 https://packages.grafana.com/enterprise/deb stable InRelease                  
                          Paketlisten werden gelesen... Fertig
                          Changing npm registry to https://registry.npmjs.org
                          npm ERR! builtins is not a function
                          
                          npm ERR! A complete log of this run can be found in:
                          npm ERR!     /home/pi/.npm/_logs/2022-12-21T18_56_11_280Z-debug-0.log
                          Installed gcc-c++
                          
                          ==========================================================================
                              Creating ioBroker user and directory (2/4)
                          ==========================================================================
                          
                          Created /etc/sudoers.d/iobroker
                          Directory /opt/iobroker created
                          
                          ==========================================================================
                              Installing ioBroker (3/4)
                          ==========================================================================
                          
                          npm ERR! builtins is not a function
                          
                          npm ERR! A complete log of this run can be found in:
                          npm ERR!     /home/pi/.npm/_logs/2022-12-21T18_56_16_582Z-debug-0.log
                          
                          ==========================================================================
                              Finalizing installation (4/4)
                          ==========================================================================
                          
                          Enabling autostart...
                          Autostart enabled!
                          Fixing directory permissions...
                          
                          ==========================================================================
                          
                              ioBroker was installed successfully
                              Open http://192.168.1.95 10.8.0.1:8081 in a browser and start configuring!
                          
                          ==========================================================================
                          
                          
                          You need to re-login before doing anything else on the console!
                          
                          

                          meinst du so?

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

                            @chris982

                            Check deine nodejs-Installation. Ich vermute die ist/war mal krumm.

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

                              @thomas-braun

                              pi@raspberrypi:~ $ apt policy nodejs
                              
                              nodejs
                              nodejs:
                                Installiert:           16.19.0-deb-1nodesource1
                                Installationskandidat: 16.19.0-deb-1nodesource1
                                Versionstabelle:
                               *** 16.19.0-deb-1nodesource1 500
                                      500 https://deb.nodesource.com/node_16.x bullseye/main armhf Packages
                                      100 /var/lib/dpkg/status
                                   12.22.12~dfsg-1~deb11u1 500
                                      500 http://raspbian.raspberrypi.org/raspbian bullseye/main armhf Packages
                              Welcome to Node.js v16.19.0.
                              Type ".help" for more information.
                              > 
                              
                              

                              ich denke auch weil da 2 nodejs installiert sind. aber wie kann ich die 12.22.12 löschen?

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

                                @chris982

                                Gar nicht. Die ist ja nicht (über den Paketmanager) installiert.
                                Was sagt

                                sudo ln -s /usr/bin/node /usr/bin/nodejs &> /dev/null
                                uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                
                                C 1 Reply Last reply Reply Quote 0
                                • C
                                  Chris982 @Thomas Braun last edited by

                                  @thomas-braun

                                  pi@raspberrypi:~ $ uname -m && test -f /opt/scripts/.docker_config/.thisisdocker && echo "Docker-Installation" || echo "Kein Docker" && type -P nodejs node npm && nodejs -v && node -v && npm -v && iob -v && whoami && groups && echo $XDG_SESSION_TYPE && echo $DESKTOP_SESSION && pwd && sudo apt update &> /dev/null && sudo apt update && apt policy nodejs
                                  armv7l
                                  Kein Docker
                                  /usr/bin/nodejs
                                  /usr/bin/node
                                  /usr/bin/npm
                                  v16.19.0
                                  v16.19.0
                                  8.19.3
                                  node:internal/modules/cjs/loader:998
                                    throw err;
                                    ^
                                  
                                  Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                      at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
                                      at Function.Module._load (node:internal/modules/cjs/loader:841:27)
                                      at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
                                      at node:internal/main/run_main_module:22:47 {
                                    code: 'MODULE_NOT_FOUND',
                                    requireStack: []
                                  }
                                  pi@raspberrypi:~ $ 
                                  
                                  
                                  
                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @Chris982 last edited by

                                    @chris982
                                    Ich weiß nicht wie oft das hier schon gefixt wurde. Such nach der Fehlermeldung.

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

                                      @thomas-braun
                                      ok, mache mich nochmal auf die suche, hbe vorhin aber nichts wirkliches gefunden.

                                      Danke Dir schon mal

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

                                        @chris982

                                        Zuletzt genau in diesem Thread. Vor nicht mal 24 Stunden.

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

                                          @thomas-braun

                                          ja die sachen habe ich auch schon mehrfach gemacht aber es geht leider trotzdem nicht. oder habe ich noch was übersehen?

                                          pi@raspberrypi:~ $ sudo systemctl stop iobroker
                                          pi@raspberrypi:~ $ iobroker fix
                                          library: loaded
                                          Library version=2022-12-09
                                          ioBroker is not installed in /opt/iobroker! Cannot fix anything...
                                          pi@raspberrypi:~ $ sudo systemctl start iobroker
                                          pi@raspberrypi:~ $ cd /opt/iobroker
                                          pi@raspberrypi:/opt/iobroker $ sudo -H -u iobroker npm install iobroker.js-controller
                                          npm ERR! builtins is not a function
                                          
                                          npm ERR! A complete log of this run can be found in:
                                          npm ERR!     /home/iobroker/.npm/_logs/2022-12-21T19_50_27_303Z-debug-0.log
                                          pi@raspberrypi:/opt/iobroker $ iobroker restart
                                          pi@raspberrypi:/opt/iobroker $ iobroker status
                                          node:internal/modules/cjs/loader:998
                                            throw err;
                                            ^
                                          
                                          Error: Cannot find module '/opt/iobroker/node_modules/iobroker.js-controller/iobroker.js'
                                              at Function.Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
                                              at Function.Module._load (node:internal/modules/cjs/loader:841:27)
                                              at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
                                              at node:internal/main/run_main_module:22:47 {
                                            code: 'MODULE_NOT_FOUND',
                                            requireStack: []
                                          }
                                          pi@raspberrypi:/opt/iobroker $ cd
                                          pi@raspberrypi:~ $ curl -sLf https://iobroker.net/install.sh | bash -
                                          library: loaded
                                          Library version=2022-12-09
                                          
                                          ==========================================================================
                                          
                                              Welcome to the ioBroker installer!
                                              Installer version: 2022-12-09
                                              
                                              You might need to enter your password a couple of times.
                                          
                                          ==========================================================================
                                          
                                          
                                          ==========================================================================
                                              Installing prerequisites (1/4)
                                          ==========================================================================
                                          
                                          OK:1 http://archive.raspberrypi.org/debian bullseye InRelease
                                          OK:2 http://raspbian.raspberrypi.org/raspbian bullseye InRelease               
                                          OK:3 https://repos.influxdata.com/debian bullseye InRelease                    
                                          OK:4 https://deb.nodesource.com/node_16.x bullseye InRelease                   
                                          OK:5 https://packages.grafana.com/enterprise/deb stable InRelease              
                                          Paketlisten werden gelesen... Fertig
                                          Changing npm registry to https://registry.npmjs.org
                                          npm ERR! builtins is not a function
                                          
                                          npm ERR! A complete log of this run can be found in:
                                          npm ERR!     /home/pi/.npm/_logs/2022-12-21T19_51_38_882Z-debug-0.log
                                          Installed gcc-c++
                                          
                                          ==========================================================================
                                              Creating ioBroker user and directory (2/4)
                                          ==========================================================================
                                          
                                          Created /etc/sudoers.d/iobroker
                                          Directory /opt/iobroker created
                                          
                                          ==========================================================================
                                              Installing ioBroker (3/4)
                                          ==========================================================================
                                          
                                          npm ERR! builtins is not a function
                                          
                                          npm ERR! A complete log of this run can be found in:
                                          npm ERR!     /home/pi/.npm/_logs/2022-12-21T19_51_44_342Z-debug-0.log
                                          
                                          ==========================================================================
                                              Finalizing installation (4/4)
                                          ==========================================================================
                                          
                                          Enabling autostart...
                                          Created symlink /etc/systemd/system/multi-user.target.wants/iobroker.service -> /lib/systemd/system/iobroker.service.
                                          Autostart enabled!
                                          Fixing directory permissions...
                                          
                                          ==========================================================================
                                          
                                              ioBroker was installed successfully
                                              Open http://192.168.1.95 10.8.0.1:8081 in a browser and start configuring!
                                          
                                          ==========================================================================
                                          
                                          
                                          You need to re-login before doing anything else on the console!
                                          
                                          pi@raspberrypi:~ $ 
                                          
                                          
                                          1 Reply Last reply Reply Quote 0
                                          • Thomas Braun
                                            Thomas Braun Most Active last edited by Thomas Braun

                                            @chris982 sagte in ioBroker Installation npm Err!:

                                            npm ERR! builtins is not a function

                                            iobroker stop
                                            sudo apt update
                                            sudo apt install --reinstall nodejs
                                            type -P npm nodejs node
                                            
                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            1.1k
                                            Online

                                            31.7k
                                            Users

                                            79.7k
                                            Topics

                                            1.3m
                                            Posts

                                            4
                                            50
                                            6693
                                            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