Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. "npm ERR! pna.nextTick is not a function" bei Adapter Installation

    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

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

    This topic has been deleted. Only users with topic management privileges can see it.
    • Dutchman
      Dutchman Developer Most Active Administrators last edited by

      @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 Reply Last reply Reply Quote 0
      • M
        mawin last edited by

        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 Reply Last reply Reply Quote 0
        • M
          mawin last edited by

          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!

          AlCalzone 1 Reply Last reply Reply Quote 0
          • AlCalzone
            AlCalzone Developer @mawin last edited by

            @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.

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

              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?

              AlCalzone 1 Reply Last reply Reply Quote 0
              • AlCalzone
                AlCalzone Developer @mawin last edited by

                @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?

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

                  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 Reply Last reply Reply Quote 0
                  • M
                    mawin last edited by

                    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?

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

                      @mawin
                      Was sagt

                      which node

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

                        $ which node
                        /usr/local/bin/node
                        

                        Danke!

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

                          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 Reply Last reply Reply Quote 0
                          • M
                            mawin last edited by

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

                            Support us

                            ioBroker
                            Community Adapters
                            Donate

                            930
                            Online

                            31.9k
                            Users

                            80.1k
                            Topics

                            1.3m
                            Posts

                            npm na.nexttick adapter
                            4
                            12
                            613
                            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