Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. ioBroker Allgemein
  4. [fixed] iobroker /bin/sh: 1: npm: not found

NEWS

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    22
    1
    1.0k

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    9.1k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    14
    1
    2.4k

[fixed] iobroker /bin/sh: 1: npm: not found

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
19 Beiträge 6 Kommentatoren 6.7k Aufrufe
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • apollon77A Offline
    apollon77A Offline
    apollon77
    schrieb am zuletzt editiert von
    #2

    Wie installiert? Gibt nen anderen Thread wo festgestellt wurde das wohl die node 6installation von nodesource kaputt ist und blödsinn macht.

    Nimm die node 8 und dann npm auf latest updaten

    Gesendet vom Handy …

    Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

    • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
    • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
    1 Antwort Letzte Antwort
    0
    • M Offline
      M Offline
      Marty56
      schrieb am zuletzt editiert von
      #3

      Danke fürs Feedback.

      Ich habe daraufhin mit "node -v" geprüft, welche Version ich installiert habe.

      Es scheint, dass ich wohl (ungewollt) v8.11.1 upgegradet habe.

      Wahrscheinlich ist dieses Upgrade irgendwie die Ursache für mein Problem.

      Warum dabei npm beeinträgt wurde, ist mir unklar.

      HW:NUC (16 GB Ram)
      OS: Debian Bullseye, Promox V7, node v16.x npm 8.19.3

      1 Antwort Letzte Antwort
      0
      • DutchmanD Offline
        DutchmanD Offline
        Dutchman
        Developer Most Active Administrators
        schrieb am zuletzt editiert von
        #4

        Node 8 ist kein Problem, was sagt npm -v ?

        Sent from my iPhone using Tapatalk

        1 Antwort Letzte Antwort
        0
        • M Offline
          M Offline
          Marty56
          schrieb am zuletzt editiert von
          #5

          Command not found.

          HW:NUC (16 GB Ram)
          OS: Debian Bullseye, Promox V7, node v16.x npm 8.19.3

          1 Antwort Letzte Antwort
          0
          • DutchmanD Offline
            DutchmanD Offline
            Dutchman
            Developer Most Active Administrators
            schrieb am zuletzt editiert von
            #6

            @Marty56:

            Command not found. `

            Na dann installieren Mal npm manuell

            Sent from my iPhone using Tapatalk

            1 Antwort Letzte Antwort
            0
            • M Offline
              M Offline
              Marty56
              schrieb am zuletzt editiert von
              #7

              mit sudo apt-get install npm habe ich es auf einem Raspberry hinbekommen und konnte dann auch die Adapter updaten.

              Bei dem zweiten Raspberry hat es nicht funktioniert.

              root@raspberrypi:~# node -v
              v8.11.1
              root@raspberrypi:~# sudo apt-get install npm
              Reading package lists... Done
              Building dependency tree
              Reading state information... Done
              Package npm is a virtual package provided by:
                nodejs 6.14.3-1nodesource1 [Not candidate version]
              
              E: Package 'npm' has no installation candidate
              

              Es scheint, dass da immer noch die alte node.js 6.14.3 hereinspukt.

              Ist mir alles schleierhaft. Beide Raspberrys wurden mit dem Build aus dem iobroker Forum aufgesetzt.

              HW:NUC (16 GB Ram)
              OS: Debian Bullseye, Promox V7, node v16.x npm 8.19.3

              1 Antwort Letzte Antwort
              0
              • HomoranH Nicht stören
                HomoranH Nicht stören
                Homoran
                Global Moderator Administrators
                schrieb am zuletzt editiert von
                #8

                Es gibt da bereits einen thread.

                Selbst bei Neuinstallation von node 6 wird node 8 installiert, das aber ohne npm.

                Es scheint, als ob das 6er repo bei nodejs.org einen Schuss weg hat.

                Gruß Rainer

                kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                1 Antwort Letzte Antwort
                0
                • M Offline
                  M Offline
                  Marty56
                  schrieb am zuletzt editiert von
                  #9

                  Vielleicht nützlich für alle, die sich im Forum keinen Wolf suchen wollen.

                  Diese Sequenz hat dann geklappt

                  sudo apt-get purge nodejs
                  curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
                  sudo apt-get install -y nodejs
                  
                  

                  HW:NUC (16 GB Ram)
                  OS: Debian Bullseye, Promox V7, node v16.x npm 8.19.3

                  1 Antwort Letzte Antwort
                  0
                  • M Offline
                    M Offline
                    Marty56
                    schrieb am zuletzt editiert von
                    #10

                    Ich könnte Kotzen …

                    Nachdem ich ein paar Module erfolgreich upgedatet hatte, stürzt iobroker ab.

                    Jetzt bekomme ich eine Fehlermeldung.

                    ` > root@raspberrypi:~# iobroker start

                    module.js:549

                    throw err;

                    ^

                    Error: Cannot find module 'camelcase'

                    at Function.Module._resolveFilename (module.js:547:15)

                    at Function.Module._load (module.js:474:25)

                    at Module.require (module.js:596:17)

                    at require (internal/module.js:11:18)

                    at Object. <anonymous>(/opt/iobroker/node_modules/iobroker.js-controller/node_modules/yargs/lib/command.js:3:19)

                    at Module._compile (module.js:652:30)

                    at Object.Module._extensions..js (module.js:663:10)

                    at Module.load (module.js:565:32)

                    at tryModuleLoad (module.js:505:12)

                    at Function.Module._load (module.js:497:3)</anonymous> `

                    HW:NUC (16 GB Ram)
                    OS: Debian Bullseye, Promox V7, node v16.x npm 8.19.3

                    1 Antwort Letzte Antwort
                    0
                    • DutchmanD Offline
                      DutchmanD Offline
                      Dutchman
                      Developer Most Active Administrators
                      schrieb am zuletzt editiert von
                      #11

                      Was dat node -v und npm -v ?

                      Sent from my iPhone using Tapatalk

                      1 Antwort Letzte Antwort
                      0
                      • M Offline
                        M Offline
                        Marty56
                        schrieb am zuletzt editiert von
                        #12

                        Ich hatte das Kommando

                        sudo ./reinstall.sh
                        

                        vergessen.

                        Jetzt geht es wieder.

                        HW:NUC (16 GB Ram)
                        OS: Debian Bullseye, Promox V7, node v16.x npm 8.19.3

                        1 Antwort Letzte Antwort
                        0
                        • M Offline
                          M Offline
                          mafe68
                          schrieb am zuletzt editiert von
                          #13

                          Hier zu dem Thema bin ich auf der Suche nach dem Link zu Bluefox seinem Git wo in der Readme die Befehle stehen für die Installation von ioBroker ,npm Node und Nodejs x6. Habe gestern ihn gefunden nur jetzt nicht mehr. Vilt kann mir wer den Link hier Posten.

                          Grund dafür ist ich möchte schauen was da schief geht bei der Installation. Rpi und x86 System sind schon vorbereitet für die Test.;)

                          LG. Mario

                          ioBroker LXC Container Proxmox

                          ioBroker BananaPi M1

                          1 Antwort Letzte Antwort
                          0
                          • DutchmanD Offline
                            DutchmanD Offline
                            Dutchman
                            Developer Most Active Administrators
                            schrieb am zuletzt editiert von
                            #14

                            Dieser hier ?

                            https://github.com/ioBroker/ioBroker.js … /README.md

                            Sent from my iPhone using Tapatalk

                            1 Antwort Letzte Antwort
                            0
                            • M Offline
                              M Offline
                              mafe68
                              schrieb am zuletzt editiert von
                              #15

                              Danke! Ja genau die habe ich gesucht. Habe https://forum.iobroker.net/viewtopic.php?f=17&t=2452&start=40#p162451 in dem Thread noch ein paar Test gemacht! Vielleicht sollte ich dazu einen eigenen Beitrag aufmachen das es nicht zu unübersichtlich wird.

                              LG. Mario

                              ioBroker LXC Container Proxmox

                              ioBroker BananaPi M1

                              1 Antwort Letzte Antwort
                              0
                              • M Offline
                                M Offline
                                Marty56
                                schrieb am zuletzt editiert von
                                #16

                                Ja das wäre gut.

                                Die Reihenfolge, die bei mir funktioniert hat, war

                                Update der Repros

                                sudo apt update && sudo apt upgrade 
                                
                                

                                dabei wird bei node.js V6 die Installation von npm "zerschossen":

                                Node.js entfernen und wieder neu installieren. In dem Beispiel wird die im Juli 18 aktuelle 8 version von node.js installiert.

                                sudo apt-get purge nodejs
                                curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
                                sudo apt-get install -y nodejs
                                
                                

                                Dann noch ioBroker neu kompilieren mit

                                sudo ./reinstall.sh
                                
                                

                                Dieser Vorgang hat bei mir ca. 30-40 Minuten auf dem Raspi 3 gedauert. Es werden jede Menge Warnings ausgegeben, die man (wahrscheinlich) ignorieren kann.

                                Versionen kontrollieren

                                node -v
                                v8.11.3
                                npm -v
                                5.6.0
                                
                                

                                und danach iobroker wieder starten.

                                HW:NUC (16 GB Ram)
                                OS: Debian Bullseye, Promox V7, node v16.x npm 8.19.3

                                1 Antwort Letzte Antwort
                                0
                                • paul53P Offline
                                  paul53P Offline
                                  paul53
                                  schrieb am zuletzt editiert von
                                  #17

                                  @Marty56:

                                  npm -v 
                                  5.6.0
                                  ```` `  
                                  

                                  Wenn npm Version 5.6.0 gemeldet wird, dann unbedingt ändern

                                  sudo npm install -g npm@4
                                  

                                  EDIT: npm@latest geändert in npm@4.

                                  Bitte verzichtet auf Chat-Nachrichten, denn die Handhabung ist grauenhaft !
                                  Produktiv: RPi 2 mit S.USV, HM-MOD-RPI und SLC-USB-Stick mit root fs

                                  1 Antwort Letzte Antwort
                                  0
                                  • M Offline
                                    M Offline
                                    Marty56
                                    schrieb am zuletzt editiert von
                                    #18

                                    Ok. jetzt wird 6.2.0 angezeigt.

                                    HW:NUC (16 GB Ram)
                                    OS: Debian Bullseye, Promox V7, node v16.x npm 8.19.3

                                    1 Antwort Letzte Antwort
                                    0
                                    • DutchmanD Offline
                                      DutchmanD Offline
                                      Dutchman
                                      Developer Most Active Administrators
                                      schrieb am zuletzt editiert von
                                      #19

                                      @Marty56:

                                      Ok. jetzt wird 6.2.0 angezeigt. `

                                      Perfekt

                                      Sent from my iPhone using Tapatalk

                                      1 Antwort Letzte Antwort
                                      0
                                      Antworten
                                      • In einem neuen Thema antworten
                                      Anmelden zum Antworten
                                      • Älteste zuerst
                                      • Neuste zuerst
                                      • Meiste Stimmen


                                      Support us

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

                                      807

                                      Online

                                      32.5k

                                      Benutzer

                                      81.6k

                                      Themen

                                      1.3m

                                      Beiträge
                                      Community
                                      Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                                      ioBroker Community 2014-2025
                                      logo
                                      • Anmelden

                                      • Du hast noch kein Konto? Registrieren

                                      • Anmelden oder registrieren, um zu suchen
                                      • Erster Beitrag
                                        Letzter Beitrag
                                      0
                                      • Home
                                      • Aktuell
                                      • Tags
                                      • Ungelesen 0
                                      • Kategorien
                                      • Unreplied
                                      • Beliebt
                                      • GitHub
                                      • Docu
                                      • Hilfe