Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. [gelöst] npm registry umstellen

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    [gelöst] npm registry umstellen

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

      @AlCalzone sagte in npm registry umstellen:

      https://github.com/AlCalzone/ioBroker.javascript/tarball/types-resolve-fixes

      Hi @AlCalzone,
      vielen Dank schon mal für den PR. Sehr cool, dass du mir hilfst.

      Ich habe

       "iobroker.javascript": "https://github.com/AlCalzone/ioBroker.javascript/tarball/types-resolve-fixes",
      

      in die package.json eingetragen und

      sudo -u iobroker  npm i
      

      aufgerufen. Bekomme nun

      ╭─────────────────────────────────────────────────────────╮
      │                                                         │
      │ Manual installation of ioBroker is no longer supported  │
      │ on Linux, OSX and FreeBSD!                              │
      │ Please refer to the documentation on how to install it! │
      │ https://github.com/ioBroker/ioBroker/wiki/Installation  │
      │                                                         │
      ╰─────────────────────────────────────────────────────────╯
      

      Wie ist denn der vorgesehene Weg für das manuelle Nachinstallieren von Adaptern?

      Denn in der Doku habe ich leider auch nichts dazu gefunden.
      4e4a8878-44a7-4d11-94e1-b4af5b0d1b25-grafik.png

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

        @smartmeta package.json solltest du nur im absoluten Notfall bearbeiten, z.B. um eine kaputte Datei zu korrigieren.

        Du suchst das hier: https://www.iobroker.net/#de/documentation/tutorial/adapter.md, was übrigens der 1. Link in dem von dir gefundenen Artikel war 🙈

        Entweder du installierst den Adapter direkt per npm:

        cd /opt/iobroker
        npm i https://github.com/AlCalzone/ioBroker.javascript/tarball/types-resolve-fixes
        

        Benutzerwechsel ist hier nicht nötig, das passiert automatisch.

        Oder (bevorzugt) über den Admin:
        4fde7d6d-1c66-4a2c-9eac-4b8fbc84fc46-grafik.png

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

          @AlCalzone

          der erste Link in dem von mir gefunden Dokument (Update eines Adapters) ist leider nicht verlinkt.
          😉

          Aber der Link https://www.iobroker.net/#de/documentation/tutorial/adapter.md ist gut. Danke!

          Installation über
          f5a8e982-20b8-4b78-8f3d-4c43f9c69feb-grafik.png
          probiere ich später aus.

          Danke

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

            @AlCalzone
            Okay, eingetragen und der Adapter ist neu geladen.

            Zur Sicherheit auch noch mal nachgesehen, dass deine Änderung in

            /lib/typescriptTools.js 
            

            auch drin ist. Alles okay.

            Dann zur Sicherheit noch mal

            iobroker stop
            iobroker start
            

            Leider funktioniert das TS-Modul noch immer nicht.
            7dac6abb-2fef-4fb6-8e59-336d3e4907c3-grafik.png

            Ich versuche das am Wochenende mal zu debuggen.

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

              Hi @AlCalzone,

              da mein Typescript ModulX bei mir noch immer nicht läuft, bin ich noch mal einen Schritt zurück gegangen.

              Ich versuche jetzt das Modul oho-iobroker-tools in einer reinen Javascript Umgebung.

              Zuerst ein Test in PHPStorm ganz ohne iobroker:
              7ded8cc1-e0fd-4e7b-80d2-a79d01738516-grafik.png

              Nun den gleichen Code

              var oho_iobroker_tools_1 = require("oho-iobroker-tools");
              var a = new oho_iobroker_tools_1.A();
              console.log(a.add(1, 20));
              

              im Javascript-Adapter :
              2e64eb45-1c04-4d4a-b3ab-2138de4b8155-grafik.png

              Wie auch in der Typescript-Variante wird die Klasse A nicht gefunden.
              751e3eea-dbd5-40d5-8cb2-26f931635e66-grafik.png

              Kannst du noch mal bitte schauen, ob das bei dir klappt. Vielleicht mache ich ja nur etwas ganz banales falsch.

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

                @smartmeta Installier bitte nochmal die neueste Version aus dem Branch:

                8228dc7d-57dd-4a2d-8c49-c54be86d0906-grafik.png

                1 Reply Last reply Reply Quote 1
                • smartmeta
                  smartmeta last edited by

                  @AlCalzone

                  vielen Dank, sehr cool.
                  Mit deinem Branch funktioniert es jetzt sowohl im Javascript als auch im Typescript.

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

                    @AlCalzone

                    Nur aus Neugier: Wann kommen die Änderungen in den Master?

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

                      @smartmeta Der PR ist jetzt germerged. Wann released wird, ist in Klärung.

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

                        @AlCalzone okay, danke.

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

                        Support us

                        ioBroker
                        Community Adapters
                        Donate

                        565
                        Online

                        31.7k
                        Users

                        79.8k
                        Topics

                        1.3m
                        Posts

                        javaskript adapter nexus npm registry
                        2
                        22
                        1090
                        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