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.
    • Dutchman
      Dutchman Developer Most Active Administrators last edited by

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

      Sent from my iPhone using Tapatalk

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

        Command not found.

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

          @Marty56:

          Command not found. `

          Na dann installieren Mal npm manuell

          Sent from my iPhone using Tapatalk

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

            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.

            1 Reply Last reply Reply Quote 0
            • 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

                                    412
                                    Online

                                    31.9k
                                    Users

                                    80.1k
                                    Topics

                                    1.3m
                                    Posts

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