Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. nodejs 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

    nodejs not found

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

      Hallo

      Ich versuche gerade in einer VM (Ubuntu 20.04.1 amd64) ioBroker zu installieren.
      Scheitere leider gleich am Anfang dieser Anleitung.

      Diese 3 Befehle ausgeführt.

      curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
      sudo apt install -y nodejs
      sudo reboot
      

      node -v passt
      npm -v passt
      nodejs -v nodejs not found

      nega@iobroker:~$ node -v
      v12.20.1
      nega@iobroker:~$ nodejs -v
      
      Command 'nodejs' not found, but can be installed with:
      
      sudo apt install nodejs
      
      nega@iobroker:~$ npm -v
      6.14.10
      nega@iobroker:~$ sudo apt install -y nodejs
      [sudo] password for nega:
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      nodejs is already the newest version (12.20.1-deb-1nodesource1).
      0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
      nega@iobroker:~$ nodejs -v
      
      Command 'nodejs' not found, but can be installed with:
      
      sudo apt install nodejs
      
      nega@iobroker:~$ sudo apt install nodejs
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      nodejs is already the newest version (12.20.1-deb-1nodesource1).
      0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
      nega@iobroker:~$ node -v
      v12.20.1
      nega@iobroker:~$ nodejs -v
      
      Command 'nodejs' not found, but can be installed with:
      
      sudo apt install nodejs
      
      nega@iobroker:~$
      

      Mach ich was falsch?

      paul53 Homoran U 3 Replies Last reply Reply Quote 0
      • paul53
        paul53 @Negalein last edited by

        @negalein said: nodejs -v nodejs not found

        nodejs Kommando ist überflüssig.

        Negalein 1 Reply Last reply Reply Quote 0
        • Negalein
          Negalein Global Moderator @paul53 last edited by

          @paul53 said in nodejs not found:

          nodejs Kommando ist überflüssig.

          Merci

          Dann passt es also?

          Werde dann mal weiterinstallieren 🙂

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

            @negalein said in nodejs not found:

            Mach ich was falsch?

            du nimmst Ubuntu 😂

            Negalein lobomau 2 Replies Last reply Reply Quote 0
            • Negalein
              Negalein Global Moderator @Homoran last edited by

              @homoran said in nodejs not found:

              du nimmst Ubuntu

              Ja, weil ich das schon auf der Platte hatte.
              Wurde mir empfohlen. 😵

              Homoran 1 Reply Last reply Reply Quote 0
              • lobomau
                lobomau @Homoran last edited by

                @homoran da ich auch gerade dabei bin.... Debian 10 ist die Empfehlung? Nicht Windoof , oder?

                1 Reply Last reply Reply Quote 0
                • Homoran
                  Homoran Global Moderator Administrators @Negalein last edited by Homoran

                  @negalein said in nodejs not found:

                  Wurde mir empfohlen.

                  aber nicht von uns 😉

                  Debian macht die wenigsten Probleme
                  https://github.com/Homoran/iobroker.install#betriebssysteme

                  Wenn du und @lobomau gerade dran seid, könnt ihr bitte mal die verlinkte Anleitung versuchen zu verstehen 😉
                  mich würde interessieren, ob sie nicht zu lang und trotzdem ausreichend ist.

                  Negalein 1 Reply Last reply Reply Quote 0
                  • Negalein
                    Negalein Global Moderator last edited by

                    @homoran said in nodejs not found:

                    Wenn du und @lobomau gerade dran seid, könnt ihr bitte mal die verlinkte Anleitung versuchen zu verstehen
                    mich würde interessieren, ob sie nicht zu lang und trotzdem ausreichend ist.

                    Merci, schau ich gleich.

                    Hab eh das nächste Problem.
                    ioBroker hat in der VM gestartet, dann Backup von der produktiven Maschine in die Test-VM kopiert.
                    Dann dies ausgeführt:

                    ioBroker stoppen
                    sudo iobroker stop 
                    Backup zurück spielen
                    sudo iobroker restore 0
                    ioBroker starten
                    sudo iobroker start all
                    sudo iobroker start
                    sudo iobroker upload all
                    

                    Wurde alles erfolgreich gemacht. Nur jetzt komm ich mit IP:8081 nicht mehr rein.
                    Fehler: Verbindung unterbrochen

                    Homoran 1 Reply Last reply Reply Quote 0
                    • Homoran
                      Homoran Global Moderator Administrators @Negalein last edited by

                      @negalein said in nodejs not found:

                      Wurde alles erfolgreich gemacht. Nur jetzt komm ich mit IP:8081 nicht mehr rein.
                      Fehler: Verbindung unterbrochen

                      Ich fürchte, dass die Anleitung den Umzug auf einen anderen rechner nicht berücksichtigt.
                      Üblicherweise müssen bei einem restore Hostname und IP gleichbleiben.

                      Ist das nicht der Fall muss vor dem Start von ioBroker der Befehl iobroker host this abgesetzt werden.

                      Wenn dann aber zusätzlich z.B. noch der admin entgegen der Doku falsch konfiguriert war und dort die alte IP anstele 0.0.0.0 als IP eingegeben war kommt man gar nicht drauf.

                      Jetzt wo iobroker schon einmal gestartet wurde solltest du es trotzdem mit iobroker host this versuchen, und später den falschen host löschen.
                      vorher natürlich iobroker stop

                      Wenn es dann noch immer nicht läuft bitte den Output von iobroker list instances posten

                      Negalein 2 Replies Last reply Reply Quote 0
                      • Negalein
                        Negalein Global Moderator @Homoran last edited by

                        @homoran said in nodejs not found:

                        Ich fürchte, dass die Anleitung den Umzug auf einen anderen rechner nicht berücksichtigt.

                        Ah ok!

                        Er läuft gerade das durch.
                        node node_modules/iobroker.js-controller/controller.js --logs

                        Wenn er fertig ist, versuch ich das.

                        1 Reply Last reply Reply Quote 0
                        • Negalein
                          Negalein Global Moderator @Homoran last edited by

                          @homoran said in nodejs not found:

                          Wenn es dann noch immer nicht läuft bitte den Output von iobroker list instances posten

                          nega@iobroker:/opt/iobroker$ iobroker stop
                          nega@iobroker:/opt/iobroker$ iobroker host this
                          A host with the name "iobroker" already exists!
                          nega@iobroker:/opt/iobroker$ iobroker list instances
                            system.adapter.admin.0                 : admin                 -  enabled, port: 8081, bind: 0.0.0.0 (SSL), run as: admin
                            system.adapter.alexa2.0                : alexa2                -  enabled
                            system.adapter.alexa2.1                : alexa2                -  enabled
                            system.adapter.backitup.0              : backitup              -  enabled
                            system.adapter.birthdays.0             : birthdays             -  enabled
                            system.adapter.bring.0                 : bring                 -  enabled
                            system.adapter.calendar.0              : calendar              -  enabled, port: 8095
                            system.adapter.cloud.0                 : cloud                 -  enabled
                            system.adapter.daswetter.0             : daswetter             -  enabled
                            system.adapter.denon.0                 : denon                 -  enabled
                            system.adapter.devices.0               : devices               -  enabled
                            system.adapter.discovery.0             : discovery             -  enabled
                            system.adapter.doorbird.0              : doorbird              -  enabled
                            system.adapter.dwd.0                   : dwd                   -  enabled
                            system.adapter.e-control-at-fuel.0     : e-control-at-fuel     -  enabled
                            system.adapter.email.0                 : email                 -  enabled
                            system.adapter.enigma2.0               : enigma2               -  enabled
                            system.adapter.eventlist.0             : eventlist             -  enabled
                            system.adapter.fb-checkpresence.0      : fb-checkpresence      -  enabled
                            system.adapter.feiertage.0             : feiertage             -  enabled
                            system.adapter.flot.0                  : flot                  -  enabled
                            system.adapter.fontui.0                : fontui                -  enabled
                            system.adapter.fronius.0               : fronius               -  enabled
                            system.adapter.harmony.1               : harmony               -  enabled
                            system.adapter.history.0               : history               -  enabled
                            system.adapter.hm-rega.0               : hm-rega               -  enabled
                            system.adapter.hm-rpc.0                : hm-rpc                -  enabled, port: 0
                            system.adapter.hm-rpc.1                : hm-rpc                -  enabled, port: 0
                            system.adapter.hm-rpc.2                : hm-rpc                -  enabled, port: 0
                            system.adapter.hs100.0                 : hs100                 -  enabled
                            system.adapter.hue.0                   : hue                   -  enabled, port: 80
                            system.adapter.ical.0                  : ical                  -  enabled
                            system.adapter.ical.1                  : ical                  -  enabled
                            system.adapter.icons-addictive-flavour-png.0: icons-addictive-flavour-png -  enabled
                            system.adapter.icons-fatcow-hosting.0  : icons-fatcow-hosting  -  enabled
                            system.adapter.icons-icons8.0          : icons-icons8          -  enabled
                            system.adapter.icons-material-png.0    : icons-material-png    -  enabled
                            system.adapter.icons-material-svg.0    : icons-material-svg    -  enabled
                            system.adapter.icons-mfd-png.0         : icons-mfd-png         -  enabled
                            system.adapter.icons-mfd-svg.0         : icons-mfd-svg         -  enabled
                            system.adapter.icons-open-icon-library-png.0: icons-open-icon-library-png -  enabled
                            system.adapter.icons-ultimate-png.0    : icons-ultimate-png    -  enabled
                            system.adapter.influxdb.0              : influxdb              -  enabled, port: 32543
                            system.adapter.info.0                  : info                  -  enabled
                            system.adapter.iot.0                   : iot                   - disabled
                            system.adapter.iot.1                   : iot                   -  enabled
                            system.adapter.javascript.0            : javascript            -  enabled
                            system.adapter.javascript.1            : javascript            -  enabled
                            system.adapter.linkeddevices.0         : linkeddevices         -  enabled
                            system.adapter.linux-control.0         : linux-control         -  enabled
                            system.adapter.logparser.0             : logparser             -  enabled
                            system.adapter.meteoalarm.0            : meteoalarm            -  enabled
                            system.adapter.mihome.0                : mihome                -  enabled, port: 9898, bind: 10.0.1.200
                            system.adapter.mytime.0                : mytime                -  enabled
                            system.adapter.net-tools.0             : net-tools             -  enabled
                            system.adapter.nina.0                  : nina                  -  enabled
                            system.adapter.node-red.0              : node-red              -  enabled, port: 1880, bind: 10.0.1.200
                            system.adapter.nut.0                   : nut                   - disabled
                            system.adapter.openuv.0                : openuv                -  enabled
                            system.adapter.parser.0                : parser                -  enabled
                            system.adapter.pegelalarm.0            : pegelalarm            -  enabled
                            system.adapter.phantomjs.0             : phantomjs             -  enabled
                            system.adapter.ping.0                  : ping                  -  enabled
                            system.adapter.pollenflug.0            : pollenflug            -  enabled
                            system.adapter.proxy.0                 : proxy                 -  enabled
                            system.adapter.sainlogic.0             : sainlogic             -  enabled, port: 45000
                            system.adapter.scenes.0                : scenes                -  enabled
                            system.adapter.simple-api.0            : simple-api            -  enabled, port: 8087, bind: 10.0.1.200, run as: admin
                            system.adapter.smartmeter.0            : smartmeter            -  enabled
                            system.adapter.snmp.0                  : snmp                  -  enabled
                            system.adapter.socketio.0              : socketio              -  enabled, port: 8084, bind: 0.0.0.0, run as: admin
                            system.adapter.sourceanalytix.0        : sourceanalytix        -  enabled
                            system.adapter.synology.0              : synology              -  enabled, port: 5000
                            system.adapter.synology.1              : synology              -  enabled, port: 5000
                            system.adapter.synology.2              : synology              -  enabled, port: 5000
                            system.adapter.systeminfo.0            : systeminfo            -  enabled
                            system.adapter.telegram.0              : telegram              -  enabled, port: 8443, bind: 0.0.0.0
                            system.adapter.time-switch.0           : time-switch           -  enabled
                            system.adapter.tr-064.0                : tr-064                -  enabled
                            system.adapter.trashschedule.0         : trashschedule         -  enabled
                            system.adapter.unifi.0                 : unifi                 -  enabled
                            system.adapter.upnp.0                  : upnp                  -  enabled
                            system.adapter.virtualpowermeter.0     : virtualpowermeter     -  enabled
                            system.adapter.vis-bars.0              : vis-bars              -  enabled
                            system.adapter.vis-canvas-gauges.0     : vis-canvas-gauges     -  enabled
                            system.adapter.vis-colorpicker.0       : vis-colorpicker       -  enabled
                            system.adapter.vis-fancyswitch.0       : vis-fancyswitch       -  enabled
                            system.adapter.vis-google-fonts.0      : vis-google-fonts      -  enabled
                            system.adapter.vis-history.0           : vis-history           -  enabled
                            system.adapter.vis-hqwidgets.0         : vis-hqwidgets         -  enabled
                            system.adapter.vis-inventwo.0          : vis-inventwo          -  enabled
                            system.adapter.vis-jqui-mfd.0          : vis-jqui-mfd          -  enabled
                            system.adapter.vis-justgage.0          : vis-justgage          -  enabled
                            system.adapter.vis-knob.0              : vis-knob              -  enabled
                            system.adapter.vis-map.0               : vis-map               -  enabled
                            system.adapter.vis-material.0          : vis-material          -  enabled
                            system.adapter.vis-materialdesign.0    : vis-materialdesign    -  enabled
                            system.adapter.vis-metro.0             : vis-metro             -  enabled
                            system.adapter.vis-players.0           : vis-players           -  enabled
                            system.adapter.vis-plumb.0             : vis-plumb             -  enabled
                            system.adapter.vis-rgraph.0            : vis-rgraph            -  enabled
                            system.adapter.vis-timeandweather.0    : vis-timeandweather    -  enabled
                            system.adapter.vis-weather.0           : vis-weather           -  enabled
                            system.adapter.vis.0                   : vis                   -  enabled
                            system.adapter.weatherunderground.0    : weatherunderground    -  enabled
                            system.adapter.web-speedy.0            : web-speedy            -  enabled
                            system.adapter.web.0                   : web                   -  enabled, port: 8082, bind: 10.0.1.200, run as: admin
                            system.adapter.whatsapp-cmb.0          : whatsapp-cmb          -  enabled
                          
                          + instance is alive
                          nega@iobroker:/opt/iobroker$
                          
                          Homoran 1 Reply Last reply Reply Quote 0
                          • Homoran
                            Homoran Global Moderator Administrators @Negalein last edited by Homoran

                            @negalein said in nodejs not found:

                            bind: 0.0.0.0 (SSL),

                            hast du https aktiviert?

                            hattest du nach dem stop iobroker wieder gestertet?

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

                              @negalein Wenn du das mit nodejs 'sauber' haben willst:
                              Schau in mein HowTo, wie man node richtig unter Debian und Konsorten handelt. Da muss unter Ubuntu noch ein Link gesetzt werden.

                              Negalein 1 Reply Last reply Reply Quote 0
                              • Negalein
                                Negalein Global Moderator @Homoran last edited by

                                @homoran said in nodejs not found:

                                hast du https aktiviert?

                                da nicht.
                                Aber von dem das Backup ist, ist https aktiv.

                                hattest du nach dem stop iobroker wieder gestertet?

                                Du meinst nach dem host this? Nein

                                1 Reply Last reply Reply Quote 0
                                • Negalein
                                  Negalein Global Moderator @Thomas Braun last edited by

                                  @thomas-braun said in nodejs not found:

                                  Schau in mein HowTo, wie man node richtig unter Debian und Konsorten handelt. Da muss unter Ubuntu noch ein Link gesetzt werden.

                                  werd ich machen
                                  Danke

                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Negalein
                                    Negalein Global Moderator last edited by

                                    @Homoran

                                    Er läuft wieder nach dem Tipp mit https und Start! 🙂

                                    Soll ich noch was kontrollieren?

                                    Homoran 1 Reply Last reply Reply Quote 0
                                    • Homoran
                                      Homoran Global Moderator Administrators @Negalein last edited by

                                      @negalein said in nodejs not found:

                                      Soll ich noch was kontrollieren?

                                      Alles 😂

                                      Mir war erst einmal nichts aufgefallen.
                                      Das sehen wir / du dann, wenn es nicht mehr läuft

                                      Negalein 1 Reply Last reply Reply Quote 0
                                      • Negalein
                                        Negalein Global Moderator @Homoran last edited by

                                        @homoran said in nodejs not found:

                                        Alles

                                        schaut derzeit gut aus 🙂

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

                                          @negalein said in nodejs not found:

                                          @thomas-braun said in nodejs not found:

                                          Schau in mein HowTo, wie man node richtig unter Debian und Konsorten handelt. Da muss unter Ubuntu noch ein Link gesetzt werden.

                                          werd ich machen
                                          Danke

                                          sudo ln -s /usr/bin/node /usr/bin/nodejs
                                          
                                          Negalein 1 Reply Last reply Reply Quote 1
                                          • Negalein
                                            Negalein Global Moderator @Thomas Braun last edited by

                                            @thomas-braun said in nodejs not found:

                                            sudo ln -s /usr/bin/node /usr/bin/nodejs

                                            Danke, das wars.

                                            Hätte in 1 Stunde mit deinem Tut begonnen. 🙂

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            877
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            6
                                            26
                                            2099
                                            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