Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. [fixed] iobroker /bin/sh: 1: npm: not found

    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

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

    This topic has been deleted. Only users with topic management privileges can see it.
    • Homoran
      Homoran Global Moderator Administrators last edited by

      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

      1 Reply Last reply Reply Quote 0
      • M
        Marty56 last edited by

        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
        
        
        1 Reply Last reply Reply Quote 0
        • M
          Marty56 last edited by

          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> `

          1 Reply Last reply Reply Quote 0
          • Dutchman
            Dutchman Developer Most Active Administrators last edited by

            Was dat node -v und npm -v ?

            Sent from my iPhone using Tapatalk

            1 Reply Last reply Reply Quote 0
            • M
              Marty56 last edited by

              Ich hatte das Kommando

              sudo ./reinstall.sh
              

              vergessen.

              Jetzt geht es wieder.

              1 Reply Last reply Reply Quote 0
              • M
                mafe68 last edited by

                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.;)

                1 Reply Last reply Reply Quote 0
                • Dutchman
                  Dutchman Developer Most Active Administrators last edited by

                  Dieser hier ?

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

                  Sent from my iPhone using Tapatalk

                  1 Reply Last reply Reply Quote 0
                  • M
                    mafe68 last edited by

                    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.

                    1 Reply Last reply Reply Quote 0
                    • M
                      Marty56 last edited by

                      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.

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

                        @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.

                        1 Reply Last reply Reply Quote 0
                        • M
                          Marty56 last edited by

                          Ok. jetzt wird 6.2.0 angezeigt.

                          1 Reply Last reply Reply Quote 0
                          • Dutchman
                            Dutchman Developer Most Active Administrators last edited by

                            @Marty56:

                            Ok. jetzt wird 6.2.0 angezeigt. `

                            Perfekt

                            Sent from my iPhone using Tapatalk

                            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

                            438
                            Online

                            31.9k
                            Users

                            80.2k
                            Topics

                            1.3m
                            Posts

                            6
                            19
                            6481
                            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