Skip to content
  • Home
  • Aktuell
  • Tags
  • 0 Ungelesen 0
  • Kategorien
  • Unreplied
  • Beliebt
  • GitHub
  • Docu
  • Hilfe
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Standard: (Kein Skin)
  • Kein Skin
Einklappen
ioBroker Logo

Community Forum

donate donate
  1. ioBroker Community Home
  2. Deutsch
  3. Error/Bug
  4. "npm ERR! pna.nextTick is not a function" bei Adapter Installation

NEWS

  • Jahresrückblick 2025 – unser neuer Blogbeitrag ist online! ✨
    BluefoxB
    Bluefox
    17
    1
    2.0k

  • Neuer Blogbeitrag: Monatsrückblick - Dezember 2025 🎄
    BluefoxB
    Bluefox
    13
    1
    924

  • Weihnachtsangebot 2025! 🎄
    BluefoxB
    Bluefox
    25
    1
    2.2k

"npm ERR! pna.nextTick is not a function" bei Adapter Installation

Geplant Angeheftet Gesperrt Verschoben Gelöst Error/Bug
npm na.nexttick adapter
12 Beiträge 4 Kommentatoren 647 Aufrufe 1 Watching
  • Älteste zuerst
  • Neuste zuerst
  • Meiste Stimmen
Antworten
  • In einem neuen Thema antworten
Anmelden zum Antworten
Dieses Thema wurde gelöscht. Nur Nutzer mit entsprechenden Rechten können es sehen.
  • M Offline
    M Offline
    mawin
    schrieb am zuletzt editiert von Negalein
    #1

    Hallo zusammen,

    ich habe ein problem mit meiner iobroker Installation, besser gesagt mit NPM. Bei einer Adpater-Installation (egal welche) erscheint der Fehler :

    *******$ ./iobroker add bring  --host ioBroker-02
    NPM version: 6.4.1
    npm install iobroker.bring --production --save --prefix "/opt/iobroker" (System call)
    npm ERR! asyncWrite is not a function
    npm ERR! pna.nextTick is not a function
    npm ERR! A complete log of this run can be found in: 
    npm ERR! /home/iobroker/.npm/_logs/2019-03-27T10_34_01_614Z-debug.log
    
    host.ioBroker-02 install adapter bring
    NPM version: 6.4.1
    npm install iobroker.bring --production --save --prefix "/opt/iobroker" (System call)
    npm ERR! asyncWrite is not a function
    npm ERR! pna.nextTick is not a function
    npm ERR! A complete log of this run can be found in:
    npm ERR! /home/iobroker/.npm/_logs/2019-03-27T10_34_09_415Z-debug.log
    
    host.ioBroker-02 install adapter bring
    NPM version: 6.4.1
    npm install iobroker.bring --production --save --prefix "/opt/iobroker" (System call)
    npm ERR! asyncWrite is not a function
    npm ERR! pna.nextTick is not a function
    npm ERR! A complete log of this run can be found in:
    npm ERR! /home/iobroker/.npm/_logs/2019-03-27T10_34_17_043Z-debug.log
    
    host.ioBroker-02 install adapter bring
    ERROR: host.ioBroker-02 Cannot install bring
    ERROR: process exited with code 13*******
    

    Ein 'npm cache verify' bringt ein ähnliches Problem:

    npm ERR! pna.nextTick is not a function
    Unhandled rejection TypeError: pna.nextTick is not a function
        at emitReadable (/usr/local/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_readable.js:498:25)
        at onEofChunk (/usr/local/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_readable.js:486:3)
        at readableAddChunk (/usr/local/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_readable.js:257:5)
        at Class.Readable.push (/usr/local/lib/node_modules/npm/node_modules/readable-stream/lib/_stream_readable.js:245:10)
        at readdirOrEmpty.map.then (/usr/local/lib/node_modules/npm/node_modules/cacache/lib/entry-index.js:135:12)
        at tryCatcher (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
        at Promise._settlePromiseFromHandler (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:512:31)
        at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:569:18)
        at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
        at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
        at Promise._fulfill (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:638:18)
        at MappingPromiseArray.PromiseArray._resolve (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise_array.js:126:19)
        at MappingPromiseArray.init (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise_array.js:74:18)
        at Promise._settlePromise (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:566:21)
        at Promise._settlePromise0 (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:614:10)
        at Promise._settlePromises (/usr/local/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:693:18)
    
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2019-03-27T10_18_31_266Z-debug.log
    

    Das Problem kann erst seit ein paar Tagen bestehen. Ein npm, node oder nodejs Update habe ich nicht durchgeführt. Meine Versionen wie folgt :
    npm 6.4.1
    nodejs v8.15.1
    node v8.15.1

    Das Letzte an was ich mich erinnern kann, ich habe die Anleitung des radar-Adapters befolgt. Befehle darin sind :

    sudo apt-get install fping arp-scan
    sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev libcap2-bin
    sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)
    

    Ob der Fehler damit zu tun hat kann ich aber nicht sagen.

    Vielen Dank für Eure Hilfe!

    1 Antwort Letzte Antwort
    0
    • M Offline
      M Offline
      mawin
      schrieb am zuletzt editiert von
      #12

      Problem wurde wie folgt behoben :

      cd /usr/local/lib/node_modules
      sudo mv npm npmold
      sudo -H npm install -g npm@6
      

      Das soweit als Info, ohne Gewähr.

      1 Antwort Letzte Antwort
      0
      • DutchmanD Offline
        DutchmanD Offline
        Dutchman
        Developer Most Active Administrators
        schrieb am zuletzt editiert von
        #2

        @mawin sagte in "npm ERR! pna.nextTick is not a function" bei Adapter Installation:

        iobroker add bring

        ich kan den Fehler nicht reproduzieren, adapter mal komplett gelöscht und neu installiert ?

        iobroker add bring
        NPM version: 6.9.0
        npm install iobroker.bring@1.3.4 --production --save --prefix "/usr/local/iobroker" (System call)
        host.MacBook-Pro-van-Rafal.local install adapter bring
        npm install --production (System call) in "/usr/local/iobroker/node_modules/iobroker.bring"
        npm notice created a lockfile as package-lock.json. You should commit this file.
        got /usr/local/iobroker/node_modules/iobroker.bring/admin
        upload [2] bring.admin /usr/local/iobroker/node_modules/iobroker.bring/admin/words.js words.js application/javascript
        upload [1] bring.admin /usr/local/iobroker/node_modules/iobroker.bring/admin/index_m.html index_m.html text/html
        upload [0] bring.admin /usr/local/iobroker/node_modules/iobroker.bring/admin/bring.png bring.png image/png
        Adapter "system.adapter.vis.0" restarted.
        host.MacBook-Pro-van-Rafal.local object system.adapter.bring created
        host.MacBook-Pro-van-Rafal.local create instance bring
        host.MacBook-Pro-van-Rafal.local object bring.0.info.user created
        host.MacBook-Pro-van-Rafal.local object bring.0.info.connection created
        host.MacBook-Pro-van-Rafal.local object bring.0.info created
        host.MacBook-Pro-van-Rafal.local object system.adapter.bring.0.outputCount created
        host.MacBook-Pro-van-Rafal.local object system.adapter.bring.0.inputCount created
        host.MacBook-Pro-van-Rafal.local object system.adapter.bring.0.uptime created
        host.MacBook-Pro-van-Rafal.local object system.adapter.bring.0.memRss created
        host.MacBook-Pro-van-Rafal.local object system.adapter.bring.0.memHeapTotal created
        host.MacBook-Pro-van-Rafal.local object system.adapter.bring.0.memHeapUsed created
        host.MacBook-Pro-van-Rafal.local object system.adapter.bring.0.cputime created
        host.MacBook-Pro-van-Rafal.local object system.adapter.bring.0.cpu created
        host.MacBook-Pro-van-Rafal.local object system.adapter.bring.0.connected created
        host.MacBook-Pro-van-Rafal.local object system.adapter.bring.0.alive created
        host.MacBook-Pro-van-Rafal.local object system.adapter.bring.0 created
        MacBook-Pro:iobroker rafal$ npm -v
        6.9.0
        MacBook-Pro:iobroker rafal$ node -v
        v8.15.0
        MacBook-Pro:iobroker rafal$ 
        
        
        1 Antwort Letzte Antwort
        0
        • M Offline
          M Offline
          mawin
          schrieb am zuletzt editiert von
          #3

          Fehler tritt bei jeder Adapter Installation auf. Auch 'npm cache verify' bringt diesen Fehler.

          Ich denke die NPM-Installation ist zerschossen, tue mich aber schwer diese neu zu installieren. Ich kann NPM nicht über sich selbst updaten :

          mw@ioBroker-02:~$ sudo npm install -g npm@6
          npm ERR! asyncWrite is not a function
          npm ERR! pna.nextTick is not a function
          npm ERR! A complete log of this run can be found in:
          npm ERR!     /root/.npm/_logs/2019-03-29T11_50_38_715Z-debug.log
          

          Da NPM eine Komponente von NodeJS ist, ich hoffe da liege ich richtig, könnte ein Update/Reinstall von NodeJS helfen? Ich möchte aber nur ungern eine Neukonfiguration meiner iobroker Installation durchführen müssen, im Moment läuft sie recht stabil und eigentlich ohne Fehler....bis auf diesen hier.

          Danke!

          AlCalzoneA 1 Antwort Letzte Antwort
          0
          • M mawin

            Fehler tritt bei jeder Adapter Installation auf. Auch 'npm cache verify' bringt diesen Fehler.

            Ich denke die NPM-Installation ist zerschossen, tue mich aber schwer diese neu zu installieren. Ich kann NPM nicht über sich selbst updaten :

            mw@ioBroker-02:~$ sudo npm install -g npm@6
            npm ERR! asyncWrite is not a function
            npm ERR! pna.nextTick is not a function
            npm ERR! A complete log of this run can be found in:
            npm ERR!     /root/.npm/_logs/2019-03-29T11_50_38_715Z-debug.log
            

            Da NPM eine Komponente von NodeJS ist, ich hoffe da liege ich richtig, könnte ein Update/Reinstall von NodeJS helfen? Ich möchte aber nur ungern eine Neukonfiguration meiner iobroker Installation durchführen müssen, im Moment läuft sie recht stabil und eigentlich ohne Fehler....bis auf diesen hier.

            Danke!

            AlCalzoneA Offline
            AlCalzoneA Offline
            AlCalzone
            Developer
            schrieb am zuletzt editiert von
            #4

            @mawin sagte in "npm ERR! pna.nextTick is not a function" bei Adapter Installation:

            Da NPM eine Komponente von NodeJS ist, ich hoffe da liege ich richtig, könnte ein Update/Reinstall von NodeJS helfen?

            Dürfte helfen. Wenn du bei der selben Major-Version bleibst (6/8/10), sollte keine Änderung an ioBroker nötig sein.

            Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

            1 Antwort Letzte Antwort
            0
            • M Offline
              M Offline
              mawin
              schrieb am zuletzt editiert von
              #5

              Leider hat der folgende Aufruf keine Besserung gebracht :

              sudo apt-get install --reinstall nodejs
              

              Also, nur um sicher zu sein und nicht am Wochenende im Keller sitzen zu müssen zwecks kompletter Neuinstallation :-), ich würde jetzt Folgendes ausführen :

              sudo apt-get --purge remove node
              sudo apt-get --purge remove nodejs
              sudo apt-get autoremove
              sudo reboot
              curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
              sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev nodejs
              sudo reboot
              sudo npm install -g npm@6
              

              Gute Idee?

              AlCalzoneA 1 Antwort Letzte Antwort
              0
              • M mawin

                Leider hat der folgende Aufruf keine Besserung gebracht :

                sudo apt-get install --reinstall nodejs
                

                Also, nur um sicher zu sein und nicht am Wochenende im Keller sitzen zu müssen zwecks kompletter Neuinstallation :-), ich würde jetzt Folgendes ausführen :

                sudo apt-get --purge remove node
                sudo apt-get --purge remove nodejs
                sudo apt-get autoremove
                sudo reboot
                curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
                sudo apt-get install -y build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev nodejs
                sudo reboot
                sudo npm install -g npm@6
                

                Gute Idee?

                AlCalzoneA Offline
                AlCalzoneA Offline
                AlCalzone
                Developer
                schrieb am zuletzt editiert von
                #6

                @mawin sagte in "npm ERR! pna.nextTick is not a function" bei Adapter Installation:

                build-essential libavahi-compat-libdnssd-dev libudev-dev libpam0g-dev

                sollten nicht nötig sein - der Rest sieht für mich sinnvoll aus.


                Mal abgesehen davon: Ich finde bei Google Hinweise, dass das möglicherweise mit dem Versionsmanager n zu tun hat, hast du den zufällig im Einsatz?

                Warum `sudo` böse ist: https://forum.iobroker.net/post/17109

                1 Antwort Letzte Antwort
                0
                • M Offline
                  M Offline
                  mawin
                  schrieb am zuletzt editiert von
                  #7

                  Einen Versions-Manager, z.B. n, habe ich nicht im Einsatz.

                  Ich führe dann mal die Befehle aus....am Sonntag, da wird das Wetter schlechter.

                  Danke schonmal für die Hilfe!

                  1 Antwort Letzte Antwort
                  0
                  • M Offline
                    M Offline
                    mawin
                    schrieb am zuletzt editiert von
                    #8

                    So regnerisches Wetter, wollte nun die Gelegenheit nutzen und node/nodejs neu installieren. Erster Befehl bringt mich aber zum Grübeln :

                    $sudo apt-get --purge remove node 
                    
                    Paketlisten werden gelesen... Fertig
                    Abhängigkeitsbaum wird aufgebaut.
                    Statusinformationen werden eingelesen.... Fertig
                    Paket »node« ist nicht installiert, wird also auch nicht entfernt.
                    0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                    
                    $ node -v
                    v8.15.1
                    
                    

                    Ich habe jetzt nicht weiter gemacht, das scheint mir doch sonderbar. Wie kann node nicht installiert sein wenn node -v mir die Version anzeigt?

                    HomoranH 1 Antwort Letzte Antwort
                    0
                    • M mawin

                      So regnerisches Wetter, wollte nun die Gelegenheit nutzen und node/nodejs neu installieren. Erster Befehl bringt mich aber zum Grübeln :

                      $sudo apt-get --purge remove node 
                      
                      Paketlisten werden gelesen... Fertig
                      Abhängigkeitsbaum wird aufgebaut.
                      Statusinformationen werden eingelesen.... Fertig
                      Paket »node« ist nicht installiert, wird also auch nicht entfernt.
                      0 aktualisiert, 0 neu installiert, 0 zu entfernen und 0 nicht aktualisiert.
                      
                      $ node -v
                      v8.15.1
                      
                      

                      Ich habe jetzt nicht weiter gemacht, das scheint mir doch sonderbar. Wie kann node nicht installiert sein wenn node -v mir die Version anzeigt?

                      HomoranH Nicht stören
                      HomoranH Nicht stören
                      Homoran
                      Global Moderator Administrators
                      schrieb am zuletzt editiert von
                      #9

                      @mawin
                      Was sagt

                      which node

                      kein Support per PN! - Fragen im Forum stellen - es gibt fast nichts, was nicht auch für andere interessant ist.

                      Benutzt das Voting rechts unten im Beitrag wenn er euch geholfen hat.

                      der Installationsfixer: curl -fsL https://iobroker.net/fix.sh | bash -

                      1 Antwort Letzte Antwort
                      0
                      • M Offline
                        M Offline
                        mawin
                        schrieb am zuletzt editiert von
                        #10
                        $ which node
                        /usr/local/bin/node
                        

                        Danke!

                        1 Antwort Letzte Antwort
                        0
                        • M Offline
                          M Offline
                          mawin
                          schrieb am zuletzt editiert von
                          #11

                          wenns hilft :

                          mw@ioBroker-02:~$ which node
                          /usr/local/bin/node
                          mw@ioBroker-02:~$ which npm
                          /usr/local/bin/npm
                          mw@ioBroker-02:~$ which nodejs
                          /usr/bin/nodejs
                          
                          1 Antwort Letzte Antwort
                          0
                          • M Offline
                            M Offline
                            mawin
                            schrieb am zuletzt editiert von
                            #12

                            Problem wurde wie folgt behoben :

                            cd /usr/local/lib/node_modules
                            sudo mv npm npmold
                            sudo -H npm install -g npm@6
                            

                            Das soweit als Info, ohne Gewähr.

                            1 Antwort Letzte Antwort
                            0
                            Antworten
                            • In einem neuen Thema antworten
                            Anmelden zum Antworten
                            • Älteste zuerst
                            • Neuste zuerst
                            • Meiste Stimmen


                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            691

                            Online

                            32.6k

                            Benutzer

                            82.2k

                            Themen

                            1.3m

                            Beiträge
                            Community
                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen | Einwilligungseinstellungen
                            ioBroker Community 2014-2025
                            logo
                            • Anmelden

                            • Du hast noch kein Konto? Registrieren

                            • Anmelden oder registrieren, um zu suchen
                            • Erster Beitrag
                              Letzter Beitrag
                            0
                            • Home
                            • Aktuell
                            • Tags
                            • Ungelesen 0
                            • Kategorien
                            • Unreplied
                            • Beliebt
                            • GitHub
                            • Docu
                            • Hilfe