NEWS
SOLVED Unsupported engine for oauth2@0.0.1
-
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 -
@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" } }
-
@Tobi81
oauth2 gibt es bei mir nicht. Hast Du es als zusätzliches NPM-Modul installiert ? oauth2 wird seit 9 Jahren nicht mehr gepflegt ! -
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.
-
@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.
-
@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?
-
@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" } }
-
@Tobi81
Kannst auch mal probieren das Modul auszutragen:
In /opt/iobrokernpm uninstall oauth2 --save
-
Super, ich hab einfach beides gemacht und es hat funktioniert.
Vielen Dank für die Hilfe.