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. ioBroker Allgemein
  4. js-controller 3.0/3.1 jetzt im Latest!

NEWS

  • UPDATE 31.10.: Amazon Alexa - ioBroker Skill läuft aus ?
    apollon77A
    apollon77
    48
    3
    8.7k

  • Monatsrückblick – September 2025
    BluefoxB
    Bluefox
    13
    1
    2.2k

  • Neues Video "KI im Smart Home" - ioBroker plus n8n
    BluefoxB
    Bluefox
    16
    1
    3.2k

js-controller 3.0/3.1 jetzt im Latest!

Geplant Angeheftet Gesperrt Verschoben ioBroker Allgemein
js-controller
1.3k Beiträge 127 Kommentatoren 496.7k Aufrufe 89 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.
  • L Offline
    L Offline
    LJSven
    schrieb am zuletzt editiert von LJSven
    #480

    Bei mir wird im Info noch die 10er Node Version angezeigt. Ist die folgende vorgehensweise richtig, um das gesammte System auf den aktuellsten Stand (Betriebssystem, iobroker, node) zu bringen ->

    cd /opt/iobroker
    iobroker backup
    iobroker stop
    cd
    sudo apt-get update
    sudo apt-get upgrade
    cd /opt/iobroker
    curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
    sudo apt-get install -y nodejs
    iobroker update
    iobroker upgrade self
    iobroker uprade
    iobroker fix
    iobroker start

    Zuerst den Slave, anschließend den Master!

    Könnte man daraus nicht ein Script machen, wie es beim "iobroker fix" auch ist?

    apollon77A 1 Antwort Letzte Antwort
    0
    • bahnuhrB bahnuhr

      bin noch nicht auf 3.0

      Im log erscheint bei mir:

      telegram.0	2020-04-27 08:00:01.645	warn	(12632) adapter.getMessage is deprecated and will be removed in js-controller 3.0. Please report this warning to the developer of this adapter!
      

      Wenn dies schon bekannt, dann gut (habe jetzt nicht den ganzen thread danach durchgeschaut).

      mfg
      Dieter

      apollon77A Offline
      apollon77A Offline
      apollon77
      schrieb am zuletzt editiert von
      #481

      @bahnuhr Da gibts ein Update für vom Adapter

      Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

      • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
      • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
      1 Antwort Letzte Antwort
      0
      • dslraserD dslraser

        @apollon77
        bis auf eine Meldung alles okay.

        denon.0	2020-04-27 08:14:08.358	error	(576) Could not create DE states: Error: The id is empty! Please provide a valid id.
        

        läuft aber trotzdem.(Adapter im Anschluss neu gestartet und läuft)

        apollon77A Offline
        apollon77A Offline
        apollon77
        schrieb am zuletzt editiert von
        #482

        @dslraser Issue bitte beim Adapter anlegen

        Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

        • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
        • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
        dslraserD 1 Antwort Letzte Antwort
        0
        • L LJSven

          Bei mir wird im Info noch die 10er Node Version angezeigt. Ist die folgende vorgehensweise richtig, um das gesammte System auf den aktuellsten Stand (Betriebssystem, iobroker, node) zu bringen ->

          cd /opt/iobroker
          iobroker backup
          iobroker stop
          cd
          sudo apt-get update
          sudo apt-get upgrade
          cd /opt/iobroker
          curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
          sudo apt-get install -y nodejs
          iobroker update
          iobroker upgrade self
          iobroker uprade
          iobroker fix
          iobroker start

          Zuerst den Slave, anschließend den Master!

          Könnte man daraus nicht ein Script machen, wie es beim "iobroker fix" auch ist?

          apollon77A Offline
          apollon77A Offline
          apollon77
          schrieb am zuletzt editiert von
          #483

          @LJSven Naja das "iobroker upgrade" an sich kann man machen muss man nicht ... updated halt alle Adapter.

          Ja sieht sinnvoll aus ... aber hey dabei kann so viel schief gehen in jedem einzelnen Schritt .... nee das macht man besser selbst schritt für schritt

          Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

          • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
          • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
          E 1 Antwort Letzte Antwort
          0
          • MaufloM Offline
            MaufloM Offline
            Mauflo
            schrieb am zuletzt editiert von
            #484

            @apollon77, bin jetzt komplett aktuell js-controller 3.0.19 und das Ding läuft! Keine Probleme mehr mit irgendwelchen Adaptern, außer die übliche Warnung bei Radar2 und broadlink2:

            radar2.0	2020-04-27 09:29:54.058	warn	(4379) adapter.objects.getObjectList is deprecated, and will be removed in the future. Please use adapter.getObjectList/Async. Report this to Developer!
            
            broadlink2.0	2020-04-27 09:42:28.185	warn	(15858) adapter.objects.getObjectList is deprecated, and will be removed in the future. Please use adapter.getObjectList/Async. Report this to Developer!
            

            TR-064 läuft und macht keine Probleme mit dem PW mehr, und auch Hue scheint soweit zu laufen.

            Soweit mein Bericht!

            RaspberryPi 4 4 GB - Raspbian light Buster - ARMv7 Processor rev 3 (v7l) - Node.js v12.18.0 - NPM 6.14.4 - Aktive Instanzen 18 (admin, alexa2, backitup, broadlink2, ham-wemo, harmony, history, hs100, hue, info, iot, javascript, radar2, scenes, tr-064, web [2x], wifilight) all latest and updated

            1 Antwort Letzte Antwort
            1
            • K Kueppert

              @AlCalzone dochdoch, hab iobroker rebuild <ADAPTER> nach jedem Update des JS-Controllers gemacht. Ich versuche es jetzt mal mit iobroker rebuild <ADAPTER> --install und werde berichten - beim nächsten JS-Controller-Update ;)

              EDIT: nach dem Rebuild keine weitere WARN-Meldung vom Adapter

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

              @Kueppert In meinen Tests hat rebuild ohne install bisher nicht funktioniert. Vermutlich lag es daran auch bei dir.

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

              1 Antwort Letzte Antwort
              2
              • apollon77A apollon77

                @deta der warm heißt nur das die objects dB etwas gebraucht hat um sich zu verbinden. Kann passieren wenn alles startet. Restarte die beiden mal einzeln. Kommt’s dann auch?

                D Offline
                D Offline
                deta
                Most Active
                schrieb am zuletzt editiert von
                #486

                @apollon77 sagte in js-controller 3.0 jetzt im Latest!:

                @deta der warm heißt nur das die objects dB etwas gebraucht hat um sich zu verbinden. Kann passieren wenn alles startet. Restarte die beiden mal einzeln. Kommt’s dann auch?

                sie gut aus. Danke

                1 Antwort Letzte Antwort
                0
                • apollon77A apollon77

                  @dslraser Issue bitte beim Adapter anlegen

                  dslraserD Offline
                  dslraserD Offline
                  dslraser
                  Forum Testing Most Active
                  schrieb am zuletzt editiert von
                  #487

                  @apollon77 sagte in js-controller 3.0 jetzt im Latest!:

                  @dslraser Issue bitte beim Adapter anlegen

                  erledigt

                  1 Antwort Letzte Antwort
                  0
                  • DiginixD Offline
                    DiginixD Offline
                    Diginix
                    schrieb am zuletzt editiert von
                    #488

                    @apollon77 Bin nun auch auf 3.0.19 und bisher alles grün und unauffällig. :+1: :clap:

                    ..:: So long! Tom ::..

                    NUC7i3 (Ubuntu Proxmox VM) | Echo Dots 2+3. Gen | Xiaomi Sensoren | Mi Robot 1S | Yeelight | Sonoff | Shelly | H801 RGB | Gosund SP1 | NodeMCU+ESP32 | Kostal Plenticore PV+BYD | openWB

                    1 Antwort Letzte Antwort
                    1
                    • apollon77A apollon77

                      @LJSven Naja das "iobroker upgrade" an sich kann man machen muss man nicht ... updated halt alle Adapter.

                      Ja sieht sinnvoll aus ... aber hey dabei kann so viel schief gehen in jedem einzelnen Schritt .... nee das macht man besser selbst schritt für schritt

                      E Offline
                      E Offline
                      e-s
                      schrieb am zuletzt editiert von e-s
                      #489

                      @apollon77
                      Weiß nicht ob der Fehler schon bekannt ist Mir ist klar, gehört eigentlich zum devices Adapter. aber auf die schnelle ist es hier einfacher.
                      Beim deinstallieren des devices Adapter:

                      host.ubuntuserver	2020-04-27 21:33:52.259	info	iobroker exit 0
                      host.ubuntuserver	2020-04-27 21:33:48.951	info	iobroker WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1
                      host.ubuntuserver	2020-04-27 21:33:48.942	info	iobroker npm
                      host.ubuntuserver	2020-04-27 21:33:29.801	error	Cannot write files: /opt/iobroker/iobroker-data/files/devices.admin/_data.json: ENOENT: no such file or directory, open '/opt/iobroker/iobroker-data/files/devices.admin/_data.json'
                      host.ubuntuserver	2020-04-27 21:33:29.649	info	iobroker npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12, 13.npm WARN npm You can find the latest version at https://nodejs.org/
                      host.ubuntuserver	2020-04-27 21:33:29.642	info	iobroker WARN npm npm does not support Node.js v14.0.0npm WARN npm You should probably upgrade to a newer version of node as wenpm WARN npm can't make any promises that npm will work with this versi
                      host.ubuntuserver	2020-04-27 21:33:29.641	info	iobroker npm
                      host.ubuntuserver	2020-04-27 21:33:28.975	info	iobroker npm uninstall iobroker.devices --error --prefix "/opt/iobroker" (System call)
                      host.ubuntuserver	2020-04-27 21:33:28.824	info	iobroker host.ubuntuserver object devices.admin deletedhost.ubuntuserver Deleting 2 object(s).
                      host.ubuntuserver	2020-04-27 21:33:28.804	info	iobroker host.ubuntuserver file devices.admin deleted
                      readDir	2020-04-27 21:33:28.770	warn	will not read this directory () in future versions: devices is not an object of type "meta"
                      readDir	2020-04-27 21:33:28.764	warn	will not read this directory (widgets/devices.html/) in future versions: vis is not an object of type "meta"
                      readDir	2020-04-27 21:33:28.756	warn	will not read this directory (widgets/devices/) in future versions: vis is not an object of type "meta"
                      host.ubuntuserver	2020-04-27 21:33:27.181	info	iobroker host.ubuntuserver Counted 1 adapter for devices
                      host.ubuntuserver	2020-04-27 21:33:27.176	info	iobroker host.ubuntuserver Counted 1 meta of devices
                      host.ubuntuserver	2020-04-27 21:33:27.104	info	iobroker Delete adapter "devices"
                      host.ubuntuserver	2020-04-27 21:33:24.465	info	iobroker del devices
                      

                      Ach ja, gehört zum bosesoundtouch:

                      bosesoundtouch.0	2020-04-27 21:13:19.940	info	(18695) connecting to host ws://192.168.2.128:8080/
                      bosesoundtouch.0	2020-04-27 21:13:18.684	info	(18695) starting. Version 0.9.2 in /opt/iobroker/node_modules/iobroker.bosesoundtouch, node: v14.0.0, js-controller: 3.0.19
                      bosesoundtouch.0	2020-04-27 21:13:18.679	error	(18695) : message handler implemented, but messagebox not enabled. Define common.messagebox in io-package.json for adapter or delete message handler.
                      
                      wendy2702W 2 Antworten Letzte Antwort
                      0
                      • E e-s

                        @apollon77
                        Weiß nicht ob der Fehler schon bekannt ist Mir ist klar, gehört eigentlich zum devices Adapter. aber auf die schnelle ist es hier einfacher.
                        Beim deinstallieren des devices Adapter:

                        host.ubuntuserver	2020-04-27 21:33:52.259	info	iobroker exit 0
                        host.ubuntuserver	2020-04-27 21:33:48.951	info	iobroker WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1
                        host.ubuntuserver	2020-04-27 21:33:48.942	info	iobroker npm
                        host.ubuntuserver	2020-04-27 21:33:29.801	error	Cannot write files: /opt/iobroker/iobroker-data/files/devices.admin/_data.json: ENOENT: no such file or directory, open '/opt/iobroker/iobroker-data/files/devices.admin/_data.json'
                        host.ubuntuserver	2020-04-27 21:33:29.649	info	iobroker npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12, 13.npm WARN npm You can find the latest version at https://nodejs.org/
                        host.ubuntuserver	2020-04-27 21:33:29.642	info	iobroker WARN npm npm does not support Node.js v14.0.0npm WARN npm You should probably upgrade to a newer version of node as wenpm WARN npm can't make any promises that npm will work with this versi
                        host.ubuntuserver	2020-04-27 21:33:29.641	info	iobroker npm
                        host.ubuntuserver	2020-04-27 21:33:28.975	info	iobroker npm uninstall iobroker.devices --error --prefix "/opt/iobroker" (System call)
                        host.ubuntuserver	2020-04-27 21:33:28.824	info	iobroker host.ubuntuserver object devices.admin deletedhost.ubuntuserver Deleting 2 object(s).
                        host.ubuntuserver	2020-04-27 21:33:28.804	info	iobroker host.ubuntuserver file devices.admin deleted
                        readDir	2020-04-27 21:33:28.770	warn	will not read this directory () in future versions: devices is not an object of type "meta"
                        readDir	2020-04-27 21:33:28.764	warn	will not read this directory (widgets/devices.html/) in future versions: vis is not an object of type "meta"
                        readDir	2020-04-27 21:33:28.756	warn	will not read this directory (widgets/devices/) in future versions: vis is not an object of type "meta"
                        host.ubuntuserver	2020-04-27 21:33:27.181	info	iobroker host.ubuntuserver Counted 1 adapter for devices
                        host.ubuntuserver	2020-04-27 21:33:27.176	info	iobroker host.ubuntuserver Counted 1 meta of devices
                        host.ubuntuserver	2020-04-27 21:33:27.104	info	iobroker Delete adapter "devices"
                        host.ubuntuserver	2020-04-27 21:33:24.465	info	iobroker del devices
                        

                        Ach ja, gehört zum bosesoundtouch:

                        bosesoundtouch.0	2020-04-27 21:13:19.940	info	(18695) connecting to host ws://192.168.2.128:8080/
                        bosesoundtouch.0	2020-04-27 21:13:18.684	info	(18695) starting. Version 0.9.2 in /opt/iobroker/node_modules/iobroker.bosesoundtouch, node: v14.0.0, js-controller: 3.0.19
                        bosesoundtouch.0	2020-04-27 21:13:18.679	error	(18695) : message handler implemented, but messagebox not enabled. Define common.messagebox in io-package.json for adapter or delete message handler.
                        
                        wendy2702W Online
                        wendy2702W Online
                        wendy2702
                        schrieb am zuletzt editiert von
                        #490

                        @e-s sagte in js-controller 3.0 jetzt im Latest!:

                        Node.js v14.0.0

                        Kann auch eher daran liegen das du scheinbar schon NODEJS 14 verwendest.

                        Bitte keine Fragen per PN, die gehören ins Forum!

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

                        E 1 Antwort Letzte Antwort
                        0
                        • wendy2702W wendy2702

                          @e-s sagte in js-controller 3.0 jetzt im Latest!:

                          Node.js v14.0.0

                          Kann auch eher daran liegen das du scheinbar schon NODEJS 14 verwendest.

                          E Offline
                          E Offline
                          e-s
                          schrieb am zuletzt editiert von
                          #491

                          @wendy2702
                          könnte auch sein, sonst macht 14 aber scheinbar keine Probleme

                          Thomas BraunT 1 Antwort Letzte Antwort
                          0
                          • E e-s

                            @apollon77
                            Weiß nicht ob der Fehler schon bekannt ist Mir ist klar, gehört eigentlich zum devices Adapter. aber auf die schnelle ist es hier einfacher.
                            Beim deinstallieren des devices Adapter:

                            host.ubuntuserver	2020-04-27 21:33:52.259	info	iobroker exit 0
                            host.ubuntuserver	2020-04-27 21:33:48.951	info	iobroker WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1
                            host.ubuntuserver	2020-04-27 21:33:48.942	info	iobroker npm
                            host.ubuntuserver	2020-04-27 21:33:29.801	error	Cannot write files: /opt/iobroker/iobroker-data/files/devices.admin/_data.json: ENOENT: no such file or directory, open '/opt/iobroker/iobroker-data/files/devices.admin/_data.json'
                            host.ubuntuserver	2020-04-27 21:33:29.649	info	iobroker npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12, 13.npm WARN npm You can find the latest version at https://nodejs.org/
                            host.ubuntuserver	2020-04-27 21:33:29.642	info	iobroker WARN npm npm does not support Node.js v14.0.0npm WARN npm You should probably upgrade to a newer version of node as wenpm WARN npm can't make any promises that npm will work with this versi
                            host.ubuntuserver	2020-04-27 21:33:29.641	info	iobroker npm
                            host.ubuntuserver	2020-04-27 21:33:28.975	info	iobroker npm uninstall iobroker.devices --error --prefix "/opt/iobroker" (System call)
                            host.ubuntuserver	2020-04-27 21:33:28.824	info	iobroker host.ubuntuserver object devices.admin deletedhost.ubuntuserver Deleting 2 object(s).
                            host.ubuntuserver	2020-04-27 21:33:28.804	info	iobroker host.ubuntuserver file devices.admin deleted
                            readDir	2020-04-27 21:33:28.770	warn	will not read this directory () in future versions: devices is not an object of type "meta"
                            readDir	2020-04-27 21:33:28.764	warn	will not read this directory (widgets/devices.html/) in future versions: vis is not an object of type "meta"
                            readDir	2020-04-27 21:33:28.756	warn	will not read this directory (widgets/devices/) in future versions: vis is not an object of type "meta"
                            host.ubuntuserver	2020-04-27 21:33:27.181	info	iobroker host.ubuntuserver Counted 1 adapter for devices
                            host.ubuntuserver	2020-04-27 21:33:27.176	info	iobroker host.ubuntuserver Counted 1 meta of devices
                            host.ubuntuserver	2020-04-27 21:33:27.104	info	iobroker Delete adapter "devices"
                            host.ubuntuserver	2020-04-27 21:33:24.465	info	iobroker del devices
                            

                            Ach ja, gehört zum bosesoundtouch:

                            bosesoundtouch.0	2020-04-27 21:13:19.940	info	(18695) connecting to host ws://192.168.2.128:8080/
                            bosesoundtouch.0	2020-04-27 21:13:18.684	info	(18695) starting. Version 0.9.2 in /opt/iobroker/node_modules/iobroker.bosesoundtouch, node: v14.0.0, js-controller: 3.0.19
                            bosesoundtouch.0	2020-04-27 21:13:18.679	error	(18695) : message handler implemented, but messagebox not enabled. Define common.messagebox in io-package.json for adapter or delete message handler.
                            
                            wendy2702W Online
                            wendy2702W Online
                            wendy2702
                            schrieb am zuletzt editiert von
                            #492

                            @e-s sagte in js-controller 3.0 jetzt im Latest!:

                            iobroker WARN npm npm does not support Node.js v14.0.0npm WARN npm You should probably upgrade to a newer version of node as wenpm WARN npm can't make any promises that npm will work with this versi

                            Glaube in deinem Fall ziemlich eindeutig.

                            Bitte keine Fragen per PN, die gehören ins Forum!

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

                            1 Antwort Letzte Antwort
                            0
                            • E e-s

                              @wendy2702
                              könnte auch sein, sonst macht 14 aber scheinbar keine Probleme

                              Thomas BraunT Online
                              Thomas BraunT Online
                              Thomas Braun
                              Most Active
                              schrieb am zuletzt editiert von
                              #493

                              @e-s Offenbar node nicht richtig installiert. Dein npm kommt aus einer anderen Version.

                              Linux-Werkzeugkasten:
                              https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                              NodeJS Fixer Skript:
                              https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                              iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                              E 1 Antwort Letzte Antwort
                              0
                              • Thomas BraunT Thomas Braun

                                @e-s Offenbar node nicht richtig installiert. Dein npm kommt aus einer anderen Version.

                                E Offline
                                E Offline
                                e-s
                                schrieb am zuletzt editiert von
                                #494

                                @Thomas-Braun @wendy2702

                                build@ubuntuserver:/opt/iobroker$ npm
                                npm WARN npm npm does not support Node.js v14.0.0
                                npm WARN npm You should probably upgrade to a newer version of node as we
                                npm WARN npm can't make any promises that npm will work with this version.
                                npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12, 13.
                                npm WARN npm You can find the latest version at https://nodejs.org/
                                
                                

                                Wenn ich mich recht erinnere, dann meckert npm rum wenn es nicht aktuell ist und man ein Update machen kann. So wie ich das verstehe ist npm einfach offiziell noch nicht soweit node14 zu benutzen, oder?
                                Aber ich glaube das ist nur ein Hinweis den ich ignorieren kann.

                                Thomas BraunT 1 Antwort Letzte Antwort
                                0
                                • E e-s

                                  @Thomas-Braun @wendy2702

                                  build@ubuntuserver:/opt/iobroker$ npm
                                  npm WARN npm npm does not support Node.js v14.0.0
                                  npm WARN npm You should probably upgrade to a newer version of node as we
                                  npm WARN npm can't make any promises that npm will work with this version.
                                  npm WARN npm Supported releases of Node.js are the latest release of 6, 8, 9, 10, 11, 12, 13.
                                  npm WARN npm You can find the latest version at https://nodejs.org/
                                  
                                  

                                  Wenn ich mich recht erinnere, dann meckert npm rum wenn es nicht aktuell ist und man ein Update machen kann. So wie ich das verstehe ist npm einfach offiziell noch nicht soweit node14 zu benutzen, oder?
                                  Aber ich glaube das ist nur ein Hinweis den ich ignorieren kann.

                                  Thomas BraunT Online
                                  Thomas BraunT Online
                                  Thomas Braun
                                  Most Active
                                  schrieb am zuletzt editiert von
                                  #495

                                  @e-s Ein aktuelles npm funktioniert auch mit einem aktuellen node. Hier läuft auch node 14 und npm, allerdings ohne die Meldungen die du da siehst.

                                  npm -v
                                  6.14.4
                                  

                                  Ignorieren würde ich das nicht, das sorgt früher oder später für Ärger.

                                  Linux-Werkzeugkasten:
                                  https://forum.iobroker.net/topic/42952/der-kleine-iobroker-linux-werkzeugkasten
                                  NodeJS Fixer Skript:
                                  https://forum.iobroker.net/topic/68035/iob-node-fix-skript
                                  iob_diag: curl -sLf -o diag.sh https://iobroker.net/diag.sh && bash diag.sh

                                  E 1 Antwort Letzte Antwort
                                  0
                                  • Thomas BraunT Thomas Braun

                                    @e-s Ein aktuelles npm funktioniert auch mit einem aktuellen node. Hier läuft auch node 14 und npm, allerdings ohne die Meldungen die du da siehst.

                                    npm -v
                                    6.14.4
                                    

                                    Ignorieren würde ich das nicht, das sorgt früher oder später für Ärger.

                                    E Offline
                                    E Offline
                                    e-s
                                    schrieb am zuletzt editiert von
                                    #496

                                    @Thomas-Braun
                                    ok, danke erstmal. den npm Fehler habe ich jetzt weg. Dafür habe ich einen Fehler im npm rebuild vom serialport, wofür auch immer der ist.

                                       V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                                                         ^~~
                                    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note:   candidate expects 3 arguments, 2 provided
                                    ../src/serialport.cpp:331:96: error: no matching function for call to âv8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)â
                                         results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
                                                                                                                                    ^
                                    In file included from /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:67:0,
                                                     from ../../nan/nan.h:56,
                                                     from ../src/./serialport.h:6,
                                                     from ../src/serialport.cpp:1:
                                    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
                                       V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                                                         ^~~
                                    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note:   candidate expects 3 arguments, 2 provided
                                    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
                                       V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                                                         ^~~
                                    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note:   candidate expects 3 arguments, 2 provided
                                    ../src/serialport.cpp:336:30: warning: âv8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) constâ is deprecated [-Wdeprecated-declarations]
                                       data->callback.Call(2, argv);
                                                                  ^
                                    In file included from ../src/./serialport.h:6:0,
                                                     from ../src/serialport.cpp:1:
                                    ../../nan/nan.h:1742:3: note: declared here
                                       Call(int argc, v8::Local<v8::Value> argv[]) const {
                                       ^~~~
                                    ../src/serialport.cpp: In function âvoid EIO_AfterGetBaudRate(uv_work_t*)â:
                                    ../src/serialport.cpp:378:106: error: no matching function for call to âv8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)â
                                         results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
                                                                                                                                              ^
                                    In file included from /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:67:0,
                                                     from ../../nan/nan.h:56,
                                                     from ../src/./serialport.h:6,
                                                     from ../src/serialport.cpp:1:
                                    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
                                       V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                                                         ^~~
                                    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note:   candidate expects 3 arguments, 2 provided
                                    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
                                       V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                                                         ^~~
                                    /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note:   candidate expects 3 arguments, 2 provided
                                    ../src/serialport.cpp:383:30: warning: âv8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) constâ is deprecated [-Wdeprecated-declarations]
                                       data->callback.Call(2, argv);
                                                                  ^
                                    In file included from ../src/./serialport.h:6:0,
                                                     from ../src/serialport.cpp:1:
                                    ../../nan/nan.h:1742:3: note: declared here
                                       Call(int argc, v8::Local<v8::Value> argv[]) const {
                                       ^~~~
                                    ../src/serialport.cpp: In function âvoid EIO_AfterDrain(uv_work_t*)â:
                                    ../src/serialport.cpp:424:30: warning: âv8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) constâ is deprecated [-Wdeprecated-declarations]
                                       data->callback.Call(1, argv);
                                                                  ^
                                    In file included from ../src/./serialport.h:6:0,
                                                     from ../src/serialport.cpp:1:
                                    ../../nan/nan.h:1742:3: note: declared here
                                       Call(int argc, v8::Local<v8::Value> argv[]) const {
                                       ^~~~
                                    ../src/serialport.cpp: At global scope:
                                    ../src/serialport.cpp:460:17: error: variable or field âinitâ declared void
                                       void init(v8::Handle<v8::Object> target) {
                                                     ^~~~~~
                                    ../src/serialport.cpp:460:17: error: âHandleâ is not a member of âv8â
                                    ../src/serialport.cpp:460:34: error: expected primary-expression before â>â token
                                       void init(v8::Handle<v8::Object> target) {
                                                                      ^
                                    ../src/serialport.cpp:460:36: error: âtargetâ was not declared in this scope
                                       void init(v8::Handle<v8::Object> target) {
                                                                        ^~~~~~
                                    ../src/serialport.cpp:460:36: note: suggested alternative: âtzsetâ
                                       void init(v8::Handle<v8::Object> target) {
                                                                        ^~~~~~
                                                                        tzset
                                    In file included from ../../nan/nan.h:56:0,
                                                     from ../src/./serialport.h:6,
                                                     from ../src/serialport.cpp:1:
                                    ../src/serialport.cpp:485:25: error: âinitâ was not declared in this scope
                                     NODE_MODULE(serialport, init);
                                                             ^
                                    /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:731:36: note: in definition of macro âNODE_MODULE_Xâ
                                           (node::addon_register_func) (regfunc),                          \
                                                                        ^~~~~~~
                                    ../src/serialport.cpp:485:1: note: in expansion of macro âNODE_MODULEâ
                                     NODE_MODULE(serialport, init);
                                     ^~~~~~~~~~~
                                    ../src/serialport.cpp:485:25: note: suggested alternative: âintâ
                                     NODE_MODULE(serialport, init);
                                                             ^
                                    /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:731:36: note: in definition of macro âNODE_MODULE_Xâ
                                           (node::addon_register_func) (regfunc),                          \
                                                                        ^~~~~~~
                                    ../src/serialport.cpp:485:1: note: in expansion of macro âNODE_MODULEâ
                                     NODE_MODULE(serialport, init);
                                     ^~~~~~~~~~~
                                    serialport.target.mk:114: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
                                    make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
                                    make: Verzeichnis â/opt/iobroker/node_modules/serialport/buildâ wird verlassen
                                    gyp ERR! build error
                                    gyp ERR! stack Error: `make` failed with exit code: 2
                                    gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
                                    gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
                                    gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
                                    gyp ERR! System Linux 4.15.0-96-generic
                                    gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                    gyp ERR! cwd /opt/iobroker/node_modules/serialport
                                    gyp ERR! node -v v14.0.0
                                    gyp ERR! node-gyp -v v5.1.0
                                    gyp ERR! not ok
                                    npm ERR! code ELIFECYCLE
                                    npm ERR! errno 1
                                    npm ERR! serialport@6.2.2 install: `prebuild-install || node-gyp rebuild`
                                    npm ERR! Exit status 1
                                    npm ERR!
                                    npm ERR! Failed at the serialport@6.2.2 install script.
                                    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                                    
                                    npm ERR! A complete log of this run can be found in:
                                    npm ERR!     /home/iobroker/.npm/_logs/2020-04-27T21_15_55_218Z-debug.log
                                    
                                    
                                    apollon77A K 2 Antworten Letzte Antwort
                                    0
                                    • E e-s

                                      @Thomas-Braun
                                      ok, danke erstmal. den npm Fehler habe ich jetzt weg. Dafür habe ich einen Fehler im npm rebuild vom serialport, wofür auch immer der ist.

                                         V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                                                           ^~~
                                      /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note:   candidate expects 3 arguments, 2 provided
                                      ../src/serialport.cpp:331:96: error: no matching function for call to âv8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)â
                                           results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
                                                                                                                                      ^
                                      In file included from /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:67:0,
                                                       from ../../nan/nan.h:56,
                                                       from ../src/./serialport.h:6,
                                                       from ../src/serialport.cpp:1:
                                      /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
                                         V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                                                           ^~~
                                      /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note:   candidate expects 3 arguments, 2 provided
                                      /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
                                         V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                                                           ^~~
                                      /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note:   candidate expects 3 arguments, 2 provided
                                      ../src/serialport.cpp:336:30: warning: âv8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) constâ is deprecated [-Wdeprecated-declarations]
                                         data->callback.Call(2, argv);
                                                                    ^
                                      In file included from ../src/./serialport.h:6:0,
                                                       from ../src/serialport.cpp:1:
                                      ../../nan/nan.h:1742:3: note: declared here
                                         Call(int argc, v8::Local<v8::Value> argv[]) const {
                                         ^~~~
                                      ../src/serialport.cpp: In function âvoid EIO_AfterGetBaudRate(uv_work_t*)â:
                                      ../src/serialport.cpp:378:106: error: no matching function for call to âv8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)â
                                           results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
                                                                                                                                                ^
                                      In file included from /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:67:0,
                                                       from ../../nan/nan.h:56,
                                                       from ../src/./serialport.h:6,
                                                       from ../src/serialport.cpp:1:
                                      /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
                                         V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                                                           ^~~
                                      /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note:   candidate expects 3 arguments, 2 provided
                                      /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
                                         V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                                                           ^~~
                                      /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note:   candidate expects 3 arguments, 2 provided
                                      ../src/serialport.cpp:383:30: warning: âv8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) constâ is deprecated [-Wdeprecated-declarations]
                                         data->callback.Call(2, argv);
                                                                    ^
                                      In file included from ../src/./serialport.h:6:0,
                                                       from ../src/serialport.cpp:1:
                                      ../../nan/nan.h:1742:3: note: declared here
                                         Call(int argc, v8::Local<v8::Value> argv[]) const {
                                         ^~~~
                                      ../src/serialport.cpp: In function âvoid EIO_AfterDrain(uv_work_t*)â:
                                      ../src/serialport.cpp:424:30: warning: âv8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) constâ is deprecated [-Wdeprecated-declarations]
                                         data->callback.Call(1, argv);
                                                                    ^
                                      In file included from ../src/./serialport.h:6:0,
                                                       from ../src/serialport.cpp:1:
                                      ../../nan/nan.h:1742:3: note: declared here
                                         Call(int argc, v8::Local<v8::Value> argv[]) const {
                                         ^~~~
                                      ../src/serialport.cpp: At global scope:
                                      ../src/serialport.cpp:460:17: error: variable or field âinitâ declared void
                                         void init(v8::Handle<v8::Object> target) {
                                                       ^~~~~~
                                      ../src/serialport.cpp:460:17: error: âHandleâ is not a member of âv8â
                                      ../src/serialport.cpp:460:34: error: expected primary-expression before â>â token
                                         void init(v8::Handle<v8::Object> target) {
                                                                        ^
                                      ../src/serialport.cpp:460:36: error: âtargetâ was not declared in this scope
                                         void init(v8::Handle<v8::Object> target) {
                                                                          ^~~~~~
                                      ../src/serialport.cpp:460:36: note: suggested alternative: âtzsetâ
                                         void init(v8::Handle<v8::Object> target) {
                                                                          ^~~~~~
                                                                          tzset
                                      In file included from ../../nan/nan.h:56:0,
                                                       from ../src/./serialport.h:6,
                                                       from ../src/serialport.cpp:1:
                                      ../src/serialport.cpp:485:25: error: âinitâ was not declared in this scope
                                       NODE_MODULE(serialport, init);
                                                               ^
                                      /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:731:36: note: in definition of macro âNODE_MODULE_Xâ
                                             (node::addon_register_func) (regfunc),                          \
                                                                          ^~~~~~~
                                      ../src/serialport.cpp:485:1: note: in expansion of macro âNODE_MODULEâ
                                       NODE_MODULE(serialport, init);
                                       ^~~~~~~~~~~
                                      ../src/serialport.cpp:485:25: note: suggested alternative: âintâ
                                       NODE_MODULE(serialport, init);
                                                               ^
                                      /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:731:36: note: in definition of macro âNODE_MODULE_Xâ
                                             (node::addon_register_func) (regfunc),                          \
                                                                          ^~~~~~~
                                      ../src/serialport.cpp:485:1: note: in expansion of macro âNODE_MODULEâ
                                       NODE_MODULE(serialport, init);
                                       ^~~~~~~~~~~
                                      serialport.target.mk:114: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
                                      make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
                                      make: Verzeichnis â/opt/iobroker/node_modules/serialport/buildâ wird verlassen
                                      gyp ERR! build error
                                      gyp ERR! stack Error: `make` failed with exit code: 2
                                      gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
                                      gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
                                      gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
                                      gyp ERR! System Linux 4.15.0-96-generic
                                      gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                      gyp ERR! cwd /opt/iobroker/node_modules/serialport
                                      gyp ERR! node -v v14.0.0
                                      gyp ERR! node-gyp -v v5.1.0
                                      gyp ERR! not ok
                                      npm ERR! code ELIFECYCLE
                                      npm ERR! errno 1
                                      npm ERR! serialport@6.2.2 install: `prebuild-install || node-gyp rebuild`
                                      npm ERR! Exit status 1
                                      npm ERR!
                                      npm ERR! Failed at the serialport@6.2.2 install script.
                                      npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                                      
                                      npm ERR! A complete log of this run can be found in:
                                      npm ERR!     /home/iobroker/.npm/_logs/2020-04-27T21_15_55_218Z-debug.log
                                      
                                      
                                      apollon77A Offline
                                      apollon77A Offline
                                      apollon77
                                      schrieb am zuletzt editiert von
                                      #497

                                      @e-s Da scheint irgendeiner Deiner Adapter noch serialpot 6 zu nutzen was mit Node 12 schon nicht mehr geescheit tut. Also hier wäre der Tipp mal die Adapter zu prüfen die Seriell arbeiten ob es Updates gibt

                                      Beitrag hat geholfen? Votet rechts unten im Beitrag :-) https://paypal.me/Apollon77 / https://github.com/sponsors/Apollon77

                                      • Debug-Log für Instanz einschalten? Admin -> Instanzen -> Expertenmodus -> Instanz aufklappen - Loglevel ändern
                                      • Logfiles auf Platte /opt/iobroker/log/… nutzen, Admin schneidet Zeilen ab
                                      E 1 Antwort Letzte Antwort
                                      0
                                      • E e-s

                                        @Thomas-Braun
                                        ok, danke erstmal. den npm Fehler habe ich jetzt weg. Dafür habe ich einen Fehler im npm rebuild vom serialport, wofür auch immer der ist.

                                           V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                                                             ^~~
                                        /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note:   candidate expects 3 arguments, 2 provided
                                        ../src/serialport.cpp:331:96: error: no matching function for call to âv8::Object::Set(v8::Local<v8::String>, Nan::imp::FactoryBase<v8::Boolean>::return_t)â
                                             results->Set(Nan::New<v8::String>("dcd").ToLocalChecked(), Nan::New<v8::Boolean>(data->dcd));
                                                                                                                                        ^
                                        In file included from /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:67:0,
                                                         from ../../nan/nan.h:56,
                                                         from ../src/./serialport.h:6,
                                                         from ../src/serialport.cpp:1:
                                        /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
                                           V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                                                             ^~~
                                        /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note:   candidate expects 3 arguments, 2 provided
                                        /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
                                           V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                                                             ^~~
                                        /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note:   candidate expects 3 arguments, 2 provided
                                        ../src/serialport.cpp:336:30: warning: âv8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) constâ is deprecated [-Wdeprecated-declarations]
                                           data->callback.Call(2, argv);
                                                                      ^
                                        In file included from ../src/./serialport.h:6:0,
                                                         from ../src/serialport.cpp:1:
                                        ../../nan/nan.h:1742:3: note: declared here
                                           Call(int argc, v8::Local<v8::Value> argv[]) const {
                                           ^~~~
                                        ../src/serialport.cpp: In function âvoid EIO_AfterGetBaudRate(uv_work_t*)â:
                                        ../src/serialport.cpp:378:106: error: no matching function for call to âv8::Object::Set(v8::Local<v8::String>, Nan::imp::IntegerFactory<v8::Integer>::return_t)â
                                             results->Set(Nan::New<v8::String>("baudRate").ToLocalChecked(), Nan::New<v8::Integer>(data->baudRate));
                                                                                                                                                  ^
                                        In file included from /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:67:0,
                                                         from ../../nan/nan.h:56,
                                                         from ../src/./serialport.h:6,
                                                         from ../src/serialport.cpp:1:
                                        /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, v8::Local<v8::Value>, v8::Local<v8::Value>)
                                           V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
                                                                             ^~~
                                        /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3639:37: note:   candidate expects 3 arguments, 2 provided
                                        /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note: candidate: v8::Maybe<bool> v8::Object::Set(v8::Local<v8::Context>, uint32_t, v8::Local<v8::Value>)
                                           V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
                                                                             ^~~
                                        /home/iobroker/.cache/node-gyp/14.0.0/include/node/v8.h:3642:37: note:   candidate expects 3 arguments, 2 provided
                                        ../src/serialport.cpp:383:30: warning: âv8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) constâ is deprecated [-Wdeprecated-declarations]
                                           data->callback.Call(2, argv);
                                                                      ^
                                        In file included from ../src/./serialport.h:6:0,
                                                         from ../src/serialport.cpp:1:
                                        ../../nan/nan.h:1742:3: note: declared here
                                           Call(int argc, v8::Local<v8::Value> argv[]) const {
                                           ^~~~
                                        ../src/serialport.cpp: In function âvoid EIO_AfterDrain(uv_work_t*)â:
                                        ../src/serialport.cpp:424:30: warning: âv8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) constâ is deprecated [-Wdeprecated-declarations]
                                           data->callback.Call(1, argv);
                                                                      ^
                                        In file included from ../src/./serialport.h:6:0,
                                                         from ../src/serialport.cpp:1:
                                        ../../nan/nan.h:1742:3: note: declared here
                                           Call(int argc, v8::Local<v8::Value> argv[]) const {
                                           ^~~~
                                        ../src/serialport.cpp: At global scope:
                                        ../src/serialport.cpp:460:17: error: variable or field âinitâ declared void
                                           void init(v8::Handle<v8::Object> target) {
                                                         ^~~~~~
                                        ../src/serialport.cpp:460:17: error: âHandleâ is not a member of âv8â
                                        ../src/serialport.cpp:460:34: error: expected primary-expression before â>â token
                                           void init(v8::Handle<v8::Object> target) {
                                                                          ^
                                        ../src/serialport.cpp:460:36: error: âtargetâ was not declared in this scope
                                           void init(v8::Handle<v8::Object> target) {
                                                                            ^~~~~~
                                        ../src/serialport.cpp:460:36: note: suggested alternative: âtzsetâ
                                           void init(v8::Handle<v8::Object> target) {
                                                                            ^~~~~~
                                                                            tzset
                                        In file included from ../../nan/nan.h:56:0,
                                                         from ../src/./serialport.h:6,
                                                         from ../src/serialport.cpp:1:
                                        ../src/serialport.cpp:485:25: error: âinitâ was not declared in this scope
                                         NODE_MODULE(serialport, init);
                                                                 ^
                                        /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:731:36: note: in definition of macro âNODE_MODULE_Xâ
                                               (node::addon_register_func) (regfunc),                          \
                                                                            ^~~~~~~
                                        ../src/serialport.cpp:485:1: note: in expansion of macro âNODE_MODULEâ
                                         NODE_MODULE(serialport, init);
                                         ^~~~~~~~~~~
                                        ../src/serialport.cpp:485:25: note: suggested alternative: âintâ
                                         NODE_MODULE(serialport, init);
                                                                 ^
                                        /home/iobroker/.cache/node-gyp/14.0.0/include/node/node.h:731:36: note: in definition of macro âNODE_MODULE_Xâ
                                               (node::addon_register_func) (regfunc),                          \
                                                                            ^~~~~~~
                                        ../src/serialport.cpp:485:1: note: in expansion of macro âNODE_MODULEâ
                                         NODE_MODULE(serialport, init);
                                         ^~~~~~~~~~~
                                        serialport.target.mk:114: recipe for target 'Release/obj.target/serialport/src/serialport.o' failed
                                        make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
                                        make: Verzeichnis â/opt/iobroker/node_modules/serialport/buildâ wird verlassen
                                        gyp ERR! build error
                                        gyp ERR! stack Error: `make` failed with exit code: 2
                                        gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
                                        gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
                                        gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:276:12)
                                        gyp ERR! System Linux 4.15.0-96-generic
                                        gyp ERR! command "/usr/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                        gyp ERR! cwd /opt/iobroker/node_modules/serialport
                                        gyp ERR! node -v v14.0.0
                                        gyp ERR! node-gyp -v v5.1.0
                                        gyp ERR! not ok
                                        npm ERR! code ELIFECYCLE
                                        npm ERR! errno 1
                                        npm ERR! serialport@6.2.2 install: `prebuild-install || node-gyp rebuild`
                                        npm ERR! Exit status 1
                                        npm ERR!
                                        npm ERR! Failed at the serialport@6.2.2 install script.
                                        npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
                                        
                                        npm ERR! A complete log of this run can be found in:
                                        npm ERR!     /home/iobroker/.npm/_logs/2020-04-27T21_15_55_218Z-debug.log
                                        
                                        
                                        K Offline
                                        K Offline
                                        Kueppert
                                        schrieb am zuletzt editiert von
                                        #498

                                        @e-s könnte zB der Zigbee-Adapter sein. Ich hab den auch drauf und auch WARN Meldungen gehabt beim Update von Node. Allerdings keine ERR-Meldungen.

                                        UDM Pro, Intel NUC - ioBroker in Proxmox-VM, PiHole+Grafana&Influx+TasmoAdmin in LXCs, Raspberry Pi3 (als CCU), Zigbee-Stick Sonoff, Synology DS918+

                                        1 Antwort Letzte Antwort
                                        0
                                        • apollon77A apollon77

                                          @e-s Da scheint irgendeiner Deiner Adapter noch serialpot 6 zu nutzen was mit Node 12 schon nicht mehr geescheit tut. Also hier wäre der Tipp mal die Adapter zu prüfen die Seriell arbeiten ob es Updates gibt

                                          E Offline
                                          E Offline
                                          e-s
                                          schrieb am zuletzt editiert von
                                          #499

                                          @apollon77
                                          Einer von euch ist Schuld... :blush:

                                          serialport nutzt keiner meiner Adapter, aber ich habe herausgefunden, das discovery das braucht.
                                          Da ich aber den Adapter gelöscht habe, wurden die Abhängigkeiten nicht mehr angepasst bzw überprüft.
                                          Also hätte beim löschen des Adapters auch die zusätzlichen deps gelöscht werden müssen, das wiederum ist auch blöd wenn mehrere Adapter die Abhängigkeit brauchen.

                                          Ein Teufelskreis, ich werde jetzt kurz discovery installieren und somit hoffen das serialport dann auf 8.0.7 angehoben wird, so wie es im git steht.

                                          Oder habt Ihr eine bessere Idee?

                                          ? 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
                                          FAQ Cloud / IOT
                                          HowTo: Node.js-Update
                                          HowTo: Backup/Restore
                                          Downloads
                                          BLOG

                                          752

                                          Online

                                          32.4k

                                          Benutzer

                                          81.5k

                                          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