Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Error/Bug
    4. Unsupported engine for oauth2@0.0.1

    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 Unsupported engine for oauth2@0.0.1

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

      Systemdata Bitte Ausfüllen
      Hardwaresystem: HP Microserver
      Arbeitsspeicher: 4GB
      Festplattenart: SSD
      Betriebssystem: Ubuntu
      Node-Version: 12.16.3
      Nodejs-Version: 12.16.3
      NPM-Version: 6.14.5
      Installationsart: Skript
      Image genutzt: Nein

      Hallo zusammen,

      ich kann seit kurzem nicht mehr den Javascript Adapter auf meiner Hauptinstanz (Multihostsystem mit einem Raspberry) Updaten.
      Ich versuche von Version 4.5.1 auf 4.6.14 upzudaten, und bekomme in der Weboberfläche immer folgenden Fehler angezeigt:

      $ ./iobroker upgrade javascript
      Update javascript from @4.5.1 to @4.6.14
      NPM version: 6.14.5
      npm install iobroker.javascript@4.6.14 --loglevel error --prefix "/opt/iobroker" (System call)
      npm ERR! 
      code ENOTSUPnpm ERR! notsup Unsupported engine for oauth2@0.0.1: wanted: {"node":">= 0.4.6 < 0.5.0"} (current: {"node":"12.16.3","npm":"6.14.5"})npm ERR! notsup Not compatible with your version of node/npm: oauth2@0.0.1npm ERR! notsup Not compatible with your version of node/npm: oauth2@0.0.1npm ERR! notsup
       Required: {"node":">= 0.4.6 < 0.5.0"}npm ERR!
       notsup Actual:   {"npm":"6.14.5","node":"12.16.3"}
      npm ERR! A complete log of this run can be found in:npm ERR!     /home/iobroker/.npm/_logs/2020-05-22T10_05_49_664Z-debug.log
      

      Hier ist das wichtigste aus der 2020-05-22T10_05_49_664Z-debug.log:

      1219 warn optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/chokidar/node_modules/fsevents):
      1220 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
      1221 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS:    darwin
      1221 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch:  any
      1221 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS:   linux
      1221 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
      1222 warn jscs-loader@0.3.0 requires a peer of jscs@^3.0.3 but none is installed. You must install peer dependencies yourself.
      1223 warn react-beautiful-dnd@8.0.7 requires a peer of react@^16.3.1 but none is installed. You must install peer dependencies yourself.
      1224 warn react-motion@0.5.2 requires a peer of react@^0.14.9 || ^15.3.0 || ^16.0.0 but none is installed. You must install peer dependencies yourself.
      1225 warn react-redux@5.0.7 requires a peer of react@^0.14.0 || ^15.0.0-0 || ^16.0.0-0 but none is installed. You must install peer dependencies yourself.
      1226 verbose stack Error: Unsupported engine for oauth2@0.0.1: wanted: {"node":">= 0.4.6 < 0.5.0"} (current: {"node":"12.16.3","npm":"6.14.5"})
      1226 verbose stack     at checkEngine (/usr/lib/node_modules/npm/node_modules/npm-install-checks/index.js:14:14)
      1226 verbose stack     at module.exports.isInstallable (/usr/lib/node_modules/npm/lib/install/validate-args.js:60:3)
      1226 verbose stack     at tryCatcher (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
      1226 verbose stack     at ret (eval at makeNodePromisifiedEval (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promisify.js:184:12), <anonymous>:11:39)
      1226 verbose stack     at actions.<computed> (/usr/lib/node_modules/npm/lib/install/actions.js:52:17)
      1226 verbose stack     at execAction (/usr/lib/node_modules/npm/lib/install/actions.js:191:18)
      1226 verbose stack     at tryCatcher (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
      1226 verbose stack     at Object.gotValue (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/reduce.js:155:18)
      1226 verbose stack     at Object.gotAccum (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/reduce.js:144:25)
      1226 verbose stack     at Object.tryCatcher (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/util.js:16:23)
      1226 verbose stack     at Promise._settlePromiseFromHandler (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:517:31)
      1226 verbose stack     at Promise._settlePromise (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:574:18)
      1226 verbose stack     at Promise._settlePromise0 (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:619:10)
      1226 verbose stack     at Promise._settlePromises (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:699:18)
      1226 verbose stack     at Promise._fulfill (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:643:18)
      1226 verbose stack     at Promise._resolveCallback (/usr/lib/node_modules/npm/node_modules/bluebird/js/release/promise.js:437:57)
      1227 verbose pkgid oauth2@0.0.1
      1228 verbose cwd /opt/iobroker
      1229 verbose Linux 4.15.18-24-pve
      1230 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "iobroker.javascript@4.6.14" "--loglevel" "error" "--prefix" "/opt/iobroker"
      1231 verbose node v12.16.3
      1232 verbose npm  v6.14.5
      1233 error code ENOTSUP
      1234 error notsup Unsupported engine for oauth2@0.0.1: wanted: {"node":">= 0.4.6 < 0.5.0"} (current: {"node":"12.16.3","npm":"6.14.5"})
      1235 error notsup Not compatible with your version of node/npm: oauth2@0.0.1
      1236 error notsup Not compatible with your version of node/npm: oauth2@0.0.1
      1236 error notsup Required: {"node":">= 0.4.6 < 0.5.0"}
      1236 error notsup Actual:   {"npm":"6.14.5","node":"12.16.3"}
      1237 verbose exit [ 1, true ]
      

      Die letzten zwei Zeilen ist wohl das Problem, oder?

      1236 error notsup Required: {"node":">= 0.4.6 < 0.5.0"}
      1236 error notsup Actual:   {"npm":"6.14.5","node":"12.16.3"}
      

      Was kann ich da machen?

      Vielen Dank,
      Tobias

      paul53 1 Reply Last reply Reply Quote 0
      • paul53
        paul53 @Tobi81 last edited by

        @Tobi81
        Ich würde in der Datei iobroker.javascript/node_modules/oauth2/package.json das < 0.5.0 in der vorletzten Zeile löschen.

        {
          "name": "oauth2",
          "description": "Oauth2 multi provider npm module",
          "version": "0.0.1",
          "author": "Alexey Zakharov <alexey.v.zaharov@gmail.com>",
          "contributors": [
            { "name": "Alexey Zakharov", "email": "alexey.v.zaharov@gmail.com" },
            { "name": "Oksana Utyasheva", "email": "utyasheva.oksana@gmail.com" }
          ],
          "dependencies": {
        
          },
          "keywords": ["ouath2", "facebook", "google", "vkontakte", "twitter"],
          "repository": "git://github.com/lexer/node-oauth2",
          "main": "./lib/oauth2",
          "engines": { "node": ">= 0.4.6 < 0.5.0" }
        }
        
        Thomas Braun 1 Reply Last reply Reply Quote 1
        • paul53
          paul53 @Tobi81 last edited by paul53

          @Tobi81
          oauth2 gibt es bei mir nicht. Hast Du es als zusätzliches NPM-Modul installiert ? oauth2 wird seit 9 Jahren nicht mehr gepflegt !

          1 Reply Last reply Reply Quote 0
          • T
            Tobi81 last edited by

            Danke für die Antwort. Also ich brauch oauth nicht (mehr). Auch sind alle Adapter aus dem Standart Repository. Früher hab ich mal experimentelle Adapter getestet. Vielleicht kommt das daher.

            Wie kann ich oauth2 deinstallieren?

            Danke. 🙂

            paul53 1 Reply Last reply Reply Quote 0
            • paul53
              paul53 @Tobi81 last edited by

              @Tobi81 sagte:

              Wie kann ich oauth2 deinstallieren?

              Wenn Du es als "zusätzliches NPM-Modul" in der Konfiguration einer Javascript-Instanz eingetragen hast, dann dort einfach löschen.

              T 1 Reply Last reply Reply Quote 0
              • T
                Tobi81 @paul53 last edited by

                @paul53 sagte in Unsupported engine for oauth2@0.0.1:

                Wenn Du es als "zusätzliches NPM-Modul" in der Konfiguration einer Javascript-Instanz eingetragen hast, dann dort einfach löschen.

                Hab ich gemacht, leider kommt die Fehlermeldung trotzdem. Muss ich den Adapter irgendwie neubauen, damit der weiß das er oauth2 nicht mehr braucht?

                paul53 1 Reply Last reply Reply Quote 0
                • paul53
                  paul53 @Tobi81 last edited by

                  @Tobi81
                  Ich würde in der Datei iobroker.javascript/node_modules/oauth2/package.json das < 0.5.0 in der vorletzten Zeile löschen.

                  {
                    "name": "oauth2",
                    "description": "Oauth2 multi provider npm module",
                    "version": "0.0.1",
                    "author": "Alexey Zakharov <alexey.v.zaharov@gmail.com>",
                    "contributors": [
                      { "name": "Alexey Zakharov", "email": "alexey.v.zaharov@gmail.com" },
                      { "name": "Oksana Utyasheva", "email": "utyasheva.oksana@gmail.com" }
                    ],
                    "dependencies": {
                  
                    },
                    "keywords": ["ouath2", "facebook", "google", "vkontakte", "twitter"],
                    "repository": "git://github.com/lexer/node-oauth2",
                    "main": "./lib/oauth2",
                    "engines": { "node": ">= 0.4.6 < 0.5.0" }
                  }
                  
                  Thomas Braun 1 Reply Last reply Reply Quote 1
                  • Thomas Braun
                    Thomas Braun Most Active @paul53 last edited by

                    @Tobi81
                    Kannst auch mal probieren das Modul auszutragen:
                    In /opt/iobroker

                    npm uninstall oauth2 --save
                    
                    T 1 Reply Last reply Reply Quote 1
                    • T
                      Tobi81 @Thomas Braun last edited by

                      Super, ich hab einfach beides gemacht und es hat funktioniert.
                      Vielen Dank für die Hilfe.

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

                      Support us

                      ioBroker
                      Community Adapters
                      Donate

                      880
                      Online

                      31.9k
                      Users

                      80.1k
                      Topics

                      1.3m
                      Posts

                      node version check unsupported engine
                      3
                      8
                      607
                      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