Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. (gelöst) nodejs installiert und doch nicht installiert

    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

    (gelöst) nodejs installiert und doch nicht installiert

    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      PatrickFro last edited by PatrickFro

      Moin zusammen,

      gerade wollte ich eine Übersicht der Versionsnummern von NPM, node, nodejs und JS-Controller in VIS anzeigen lassen.

      Zuerst: mein IoBroker läuft (meist) fehlerfrei. Allerdings behauptet Ubuntu teils, dass ich kein nodejs installiert hätte, bei einer Neuinstallation behauptet Ubuntu aber, dass es bereits installiert ist:

      patrick@Tarpi:~$ nodejs -v
      
      Command 'nodejs' not found, but can be installed with:
      
      sudo apt install nodejs
      
      patrick@Tarpi:~$ sudo apt install -y nodejs
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      nodejs is already the newest version (12.22.1-deb-1nodesource1).
      The following packages were automatically installed and are no longer required:
        distro-info libc-ares2 nodejs-doc
      Use 'sudo apt autoremove' to remove them.
      0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
      patrick@Tarpi:~$ sudo apt install -y nodejs
      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      nodejs is already the newest version (12.22.1-deb-1nodesource1).
      The following packages were automatically installed and are no longer required:
        distro-info libc-ares2 nodejs-doc
      Use 'sudo apt autoremove' to remove them.
      0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
      patrick@Tarpi:~$ nodejs -v
      
      Command 'nodejs' not found, but can be installed with:
      
      sudo apt install nodejs
      
      

      Was ist denn nun los? Installiert und gleichzeitig nicht?

      paul53 Thomas Braun Homoran 4 Replies Last reply Reply Quote 0
      • paul53
        paul53 @PatrickFro last edited by paul53

        @patrickfro
        Es kann sein, dass es das Kommando nodejs in Deiner Installation nicht gibt. Checke besser mit

        node -v
        
        1 Reply Last reply Reply Quote 1
        • Thomas Braun
          Thomas Braun Most Active @PatrickFro last edited by

          @patrickfro

          sudo apt update
          apt policy nodejs
          
          1 Reply Last reply Reply Quote 0
          • Homoran
            Homoran Global Moderator Administrators @PatrickFro last edited by

            @patrickfro was bedeutet der Threadtitel?
            ich verstehe ihn nicht

            Zu deinem "Fehler" als Ergänzung zu dem von @paul53 gesagten:
            Du hast Ubuntu, da ist dieses Verhalten ganz normal. Hier muss ein symlink angelegt werden, damit die Abfrage nach nodejs noch funktioniert.
            Ist aber (fast) sinnfrei, weil Programme, die noch nach nodejs suchen eigentlich ausgestorben sein sollten.

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

              @patrickfro
              Link das Ding und gut ist (vermutlich):

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

              Danach sollte

              which nodejs node npm && nodejs -v && node -v && npm -v && sudo apt update && apt policy nodejs
              

              eine saubere Installation anzeigen.

              1 Reply Last reply Reply Quote 1
              • P
                PatrickFro last edited by

                Danke allen, das hat mir geholfen. Bisher war jede IoBroker-Installation mit Debian gemacht, den Unterschied zu Ubuntu kannte ich nicht.

                @Homoran: Der Titel ist gewählt, da in der Konsole angegeben wurde, dass nodejs nicht installiert ist, jedoch nicht installiert werden kann, da es installiert ist.

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

                  @patrickfro
                  Ausgabe vom Check ist jetzt rund?

                  P 1 Reply Last reply Reply Quote 0
                  • P
                    PatrickFro @Thomas Braun last edited by

                    @thomas-braun Ja, jetzt geht mein Skript wieder 😉

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

                    Support us

                    ioBroker
                    Community Adapters
                    Donate

                    609
                    Online

                    31.9k
                    Users

                    80.1k
                    Topics

                    1.3m
                    Posts

                    nodejs vis ubuntu linux
                    4
                    8
                    282
                    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