Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Keine Unterstützung mehr für node.js 0.10 und 0.12

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    Keine Unterstützung mehr für node.js 0.10 und 0.12

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

      …leider kein Erfolg. Die Meldung ist die gleiche.

      Ich versuche es nochmal mit dem weiter oben beschriebenen Weg. (zuerst remove, dann neuinstall von node)

      Da hatte ich vorher allerdings auch Probleme mit Fehlermeldungen bei der Installation von node.

      vG Looxer

      1 Reply Last reply Reply Quote 0
      • L
        looxer01 last edited by

        ich bekomme diesen Fehler mit der Standard installation von Node.js

        apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev nodejs
        Reading package lists... Done
        Building dependency tree
        Reading state information... Done
        build-essential is already the newest version.
        The following extra packages will be installed:
          libavahi-client-dev libavahi-common-dev libavahi-compat-libdnssd1
          libdbus-1-dev libudev1 pkg-config rlwrap udev
        The following NEW packages will be installed:
          libavahi-client-dev libavahi-common-dev libavahi-compat-libdnssd-dev
          libavahi-compat-libdnssd1 libdbus-1-dev libudev-dev nodejs pkg-config rlwrap
        The following packages will be upgraded:
          libudev1 udev
        2 upgraded, 9 newly installed, 0 to remove and 111 not upgraded.
        Need to get 1468 kB/10.1 MB of archives.
        After this operation, 43.2 MB of additional disk space will be used.
        WARNING: The following packages cannot be authenticated!
          nodejs
        E: There are problems and -y was used without --force-yes
        
        

        da muesste noch irgendwo ein force rein - oder ?

        vG Looxer

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

          Aus welcher repository wird denn nodejs installiert? Der Fehler könnte heißen das du den authentication key nicht installiert hast.

          1 Reply Last reply Reply Quote 0
          • L
            looxer01 last edited by

            @apollon77:

            Aus welcher repository wird denn nodejs installiert? Der Fehler könnte heißen das du den authentication key nicht installiert hast. `

            ich bin so vorgegangen:

            iobroker stop
            sudo apt-get --purge remove node
            sudo apt-get --purge remove nodejs
            sudo apt-get autoremove
            curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
            sudo apt-get update && sudo apt-get upgrade
            sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev nodejs
            cd /opt/iobroker
            sudo ./reinstall.sh
            iobroker start
            
            

            beim authentication key stehe ich gerade auf dem Schlauch

            Wo sollte der den bezogen und abgelegt werden ?

            vG Looxer

            1 Reply Last reply Reply Quote 0
            • S
              sunnylaila last edited by

              hallo ich bin etwas am verzweifeln und weiß nicht weiter

              versuche die Version up zu daten geht aber leider nicht siehe spoiler

              ! pi@raspberrypi:~ $ iobroker stop
              ! iobroker controller daemon is not running
              ! pi@raspberrypi:~ $ sudo apt-get –purge remove node
              ! Reading package lists... Done
              ! Building dependency tree
              ! Reading state information... Done
              ! Package 'node' is not installed, so not removed
              ! 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
              ! pi@raspberrypi:~ $ sudo apt-get --purge remove nodejs
              ! Reading package lists... Done
              ! Building dependency tree
              ! Reading state information... Done
              ! The following packages will be REMOVED:
              ! nodejs*
              ! 0 upgraded, 0 newly installed, 1 to remove and 1 not upgraded.
              ! After this operation, 40.7 MB disk space will be freed.
              ! Do you want to continue? [Y/n] y
              ! (Reading database … 118946 files and directories currently installed.)
              ! Removing nodejs (6.11.3-1nodesource1) ...
              ! Processing triggers for man-db (2.7.6.1-2) ...
              ! pi@raspberrypi:~ $ sudo apt-get autoremove
              ! Reading package lists... Done
              ! Building dependency tree
              ! Reading state information... Done
              ! 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
              ! pi@raspberrypi:~ $ curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash -
              ! ## Installing the NodeSource Node.js v6.x repo...
              ! ## Populating apt-get cache...
              ! + apt-get update
              ! Hit:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease
              ! Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
              ! Hit:3 https://deb.nodesource.com/node_6.x stretch InRelease
              ! Reading package lists... Done
              ! ## Confirming "stretch" is supported...
              ! + curl -sLf -o /dev/null 'https://deb.nodesource.com/node_6.x/dis ... ch/Release'
              ! ## Adding the NodeSource signing key to your keyring...
              ! + curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
              ! OK
              ! ## Creating apt sources list file for the NodeSource Node.js v6.x repo...
              ! + echo 'deb https://deb.nodesource.com/node_6.x stretch main' > /etc/apt/sources.list.d/nodesource.list
              ! + echo 'deb-src https://deb.nodesource.com/node_6.x stretch main' >> /etc/apt/sources.list.d/nodesource.list
              ! ## Running apt-get update for you...
              ! + apt-get update
              ! Hit:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease
              ! Hit:2 https://deb.nodesource.com/node_6.x stretch InRelease
              ! Hit:3 http://archive.raspberrypi.org/debian stretch InRelease
              ! Reading package lists... Done
              ! ## Run apt-get install nodejs (as root) to install Node.js v6.x and npm
              ! pi@raspberrypi:~ $ apt-get install nodejs
              ! E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
              ! E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
              ! pi@raspberrypi:~ $ sudo apt-get update && sudo apt-get upgrade
              ! Hit:1 http://mirrordirector.raspbian.org/raspbian stretch InRelease
              ! Hit:2 https://deb.nodesource.com/node_6.x stretch InRelease
              ! Hit:3 http://archive.raspberrypi.org/debian stretch InRelease
              ! Reading package lists... Done
              ! Reading package lists... Done
              ! Building dependency tree
              ! Reading state information... Done
              ! Calculating upgrade... Done
              ! The following packages have been kept back:
              ! gstreamer1.0-omx
              ! 0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
              ! pi@raspberrypi:~ $ sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev nodejs
              ! Reading package lists... Done
              ! Building dependency tree
              ! Reading state information... Done
              ! build-essential is already the newest version (12.3).
              ! libavahi-compat-libdnssd-dev is already the newest version (0.6.32-2).
              ! libudev-dev is already the newest version (232-25+deb9u1).
              ! The following NEW packages will be installed:
              ! nodejs
              ! 0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
              ! Need to get 0 B/8,740 kB of archives.
              ! After this operation, 40.7 MB of additional disk space will be used.
              ! Selecting previously unselected package nodejs.
              ! (Reading database ... 115955 files and directories currently installed.)
              ! Preparing to unpack .../nodejs_6.11.3-1nodesource1_armhf.deb ...
              ! Unpacking nodejs (6.11.3-1nodesource1) ...
              ! Setting up nodejs (6.11.3-1nodesource1) ...
              ! Processing triggers for man-db (2.7.6.1-2) ...
              ! pi@raspberrypi:~ $ cd /opt/iobroker
              ! pi@raspberrypi:/opt/iobroker $ sudo ./reinstall.sh
              ! sudo: ./reinstall.sh: command not found
              ! pi@raspberrypi:/opt/iobroker $ iobroker start
              ! Starting iobroker controller daemon...
              ! iobroker controller daemon failed to start: Failed to write pidfile (EACCES)
              ! Error: Failed to write pidfile (EACCES)
              ! pi@raspberrypi:/opt/iobroker $

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

                @sunnylaila:

                geht aber leider nicht `
                wenn du als user pi angemeldet bist musst du vor (nahezu) jeden Befehl sudo setzen.

                @sunnylaila:

                Run apt-get install nodejs (as root) to install Node.js v6.x and npm `
                bis hierhin lief noch alles richtig.

                statt
                @sunnylaila:

                pi@raspberrypi:~ $ apt-get install nodejs `
                hätte es heißen müssen

                sudo apt-get install nodejs
                

                Dadurch war dann node nicht installiert und alle anderen Updates brachten nichts.

                fehlende sudo gab es später noch mehr.

                Gruß

                Rainer

                1 Reply Last reply Reply Quote 0
                • S
                  sunnylaila last edited by

                  irgendwie will er das aber trotz sudo nicht installieren oder upgraden

                  pi@raspberrypi:/opt/iobroker $ sudo apt-get install nodejs

                  Reading package lists… Done

                  Building dependency tree

                  Reading state information... Done

                  nodejs is already the newest version (6.11.3-1nodesource1).

                  0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.

                  Gruß Sunny

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

                    @looxer01:

                    habe noch nie mit 'n' gearbeitet aber weiß dass einige Module bei Wechsel von x auf 6 oder 8 neu geladen werden müssen.

                    SQL light ist ein solches da es am Raspi kompiliert.

                    Wird ein SQL welches mit node <6 sind die bindings von der alten Version im binary die nicht zur neuen Version passen!

                    Ich installiere deshalb nach einen Upgrade von 4>6>8 oder sonstwas immer auch 'sudo npm install -g node-gyp' und dann die Adapter mit den zu kompilierenden codes neu (KM200, node-red, radar, sql, …), also alle Adapter die node-gyp verwenden.

                    Ach übrigens, da sich die npm-Version auch dramatisch ändert mach ich auch ein 'sudo npm cache clean -f' bevor ich mit dem neuen npm zu arbeiten beginne.

                    p.s.: das ganze gilt auch wenn ihr (so wie ich schon) wieder zurück-steigt, z.B. von 8 auf 6!

                    Ich würde nie ungerade Zahlen verwenden, die sind nur 'developer' und haben machen für ioBroker keinen Sinn. LTE-versionen gibts nur mit geraden Zahlen, bald auch für 8!

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

                      Du hast ja jetzt nodejs 6.11 drauf.

                      Was willst du mehr?

                      Gruß

                      Rainer

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sprite01 last edited by

                        Ich bin nach der Anleitung im ersten Thread vorgegangen.

                        Bei sudo ./reinstall.sh erhalte ich die Fehlermeldung No such file or directory

                        Die Datei reinstall.sh ist allerdings in dem Pfad vorhanden.

                        Was kann/muss ich da tun ?
                        137_reinstall.jpg

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

                          versuchs mal ohne sudo, und ändere notfalls mal die Rechte der Datei auf 777

                          Gruß

                          Rainer

                          1 Reply Last reply Reply Quote 0
                          • S
                            Sprite01 last edited by

                            admin@ubuntu-hd:/opt/iobroker$ ./reinstall.sh
                            -bash: ./reinstall.sh: /bin/bash^M: bad interpreter: No such file or directory
                            
                            

                            Die Rechte für /opt/iobroker und Unterordner sind meines Wissens auf 777.

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

                              @Sprite01:

                              sind meines Wissens auf 777. `
                              Recht du hast!

                              jetzt ist es ein anderer Fehler 😉

                              Datei bitte mit filezilla o.ä herunterladen, mit notepad++ bearbeiten und den Typ des Zeilenumbruchs von Windows in Unix ändern:
                              144_zeilenumbruch.jpg
                              anschließend wieder hochladen (ggf. Rechte anpassen) und erneut ausführen

                              Gruß

                              Rainer

                              1 Reply Last reply Reply Quote 0
                              • S
                                Sprite01 last edited by

                                Hat funktioniert.

                                Rainer, vielen herzlichen Dank für die Infos.

                                Ich hatte im www zwar gelesen das es mit Zeilenumbrüchen zu tun hat, aber auf die Behebung wäre ich nie gekommen.

                                Jetzt ist das reinstall nach einer gefühlten halben Stunde fertig geworden, aber es waren leider auch wiederholt gyp-Fehler enthalten.

                                Das ich WARN-ungen ignorieren kann habe ich ja inzwischen gelernt, aber was kann ich bei den gyp-Fehlern hier noch machen ?

                                ! ` > > authenticate-pam@1.0.2 install /opt/iobroker/node_modules/authenticate-pam

                                node-gyp rebuild

                                make: Entering directory `/opt/iobroker/node_modules/authenticate-pam/build'

                                CXX(target) Release/obj.target/authenticate_pam/authenticate_pam.o

                                ../authenticate_pam.cc:30:31: fatal error: security/pam_appl.h: No such file or directory

                                #include <security pam_appl.h="">^

                                compilation terminated.

                                make: *** [Release/obj.target/authenticate_pam/authenticate_pam.o] Error 1

                                make: Leaving directory `/opt/iobroker/node_modules/authenticate-pam/build'

                                gyp ERR! build error

                                gyp ERR! stack Error: make failed with exit code: 2

                                gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)

                                gyp ERR! stack at emitTwo (events.js:106:13)

                                gyp ERR! stack at ChildProcess.emit (events.js:191:7)

                                gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:219:12)

                                gyp ERR! System Linux 4.2.8

                                gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gy p/bin/node-gyp.js" "rebuild"

                                gyp ERR! cwd /opt/iobroker/node_modules/authenticate-pam

                                gyp ERR! node -v v6.11.4

                                gyp ERR! node-gyp -v v3.4.0

                                gyp ERR! not ok

                                iobroker.core@0.1.0 /opt/iobroker

                                └── iobroker.yr@1.0.6

                                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: xpc-connection@~0.1.4 (node_modu les/noble/node_modules/xpc-connection):

                                npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for xpc-conne ction@0.1.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch": "x64"})

                                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 (node_mod ules/authenticate-pam):

                                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: authenticate-pam@1.0.2 install: node-gyp rebuild

                                npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

                                DONE iobroker.yr</security> `

                                1 Reply Last reply Reply Quote 0
                                • R
                                  RappiRN Most Active last edited by

                                  @RappiRN:

                                  Das wäre ne Möglichkeit, muss ich mal ausprobieren, bislang hatte ich keine Probleme, ist ja auch nur ein Slave.

                                  Enrico `

                                  So, da nun noch andere Probleme dazu kamen, die ebenfalls auf eine defekte SD-Karte schließen ließen, habe ich kurzerhand ne andere Karte vorbereitet und ausprobiert, danach lief alles!

                                  Enrico

                                  1 Reply Last reply Reply Quote 0
                                  • D
                                    Don_Hasso last edited by

                                    Ich hab dummerweise die Version 9.2.1 installiert. :?

                                    Wenn ich nun versuche die Version zu löschen kam immer die Meldung, dass das Paket >>node<< nicht installiert ist…Da ich neu bei ioBroker bin hab ich noch nicht viel erstellt und hab auch kein großes Problem alles wieder neu zu bauen, falls nötig. Aber anders wäre es mir halt lieber... :roll:
                                    4223_fehler.png

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

                                      Probier mal mit nodejs anstelle node in dem befehl

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        Don_Hasso last edited by

                                        Danke, aber funktioniert auch nicht. Wieder die Meldung, dass es nicht vorhanden ist. Node* ebenso…

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

                                          @apollon77: Hat node v9 wieder eine neue Struktur???

                                          Gruß

                                          Rainer

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

                                            „Struktur“ kommt von npm. Node ist die ausführungslogik. Welche npm ist bei Node 9 dabei? Am ende ist Node 9 aber eh wieder Development Version.

                                            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

                                            989
                                            Online

                                            32.1k
                                            Users

                                            80.7k
                                            Topics

                                            1.3m
                                            Posts

                                            13
                                            51
                                            8820
                                            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