NEWS
[gelöst]ioBroker adapter creator Fehler: Cannot find module
-
Hallo,
Wenn ich diesen Befehl eingebe:npx @iobroker/create-adapterBekomme ich diese Fehlermeldung:
internal/modules/cjs/loader.js:818 throw err; ^ Error: Cannot find module '/root/.npm/_npx/526/lib/node_modules/@iobroker/create-adapter/node_modules/protobufjs/scripts/postinstall' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) at Function.Module._load (internal/modules/cjs/loader.js:667:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! protobufjs@6.11.2 postinstall: `node scripts/postinstall` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the protobufjs@6.11.2 postinstall 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! /root/.npm/_logs/2021-09-16T07_26_28_903Z-debug.log Install for [ '@iobroker/create-adapter@latest' ] failed with code 1Kann mir hier jemand sagen warum er das postinstall script nicht findet?
Grüße
Daniel -
Hallo,
Wenn ich diesen Befehl eingebe:npx @iobroker/create-adapterBekomme ich diese Fehlermeldung:
internal/modules/cjs/loader.js:818 throw err; ^ Error: Cannot find module '/root/.npm/_npx/526/lib/node_modules/@iobroker/create-adapter/node_modules/protobufjs/scripts/postinstall' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) at Function.Module._load (internal/modules/cjs/loader.js:667:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! protobufjs@6.11.2 postinstall: `node scripts/postinstall` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the protobufjs@6.11.2 postinstall 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! /root/.npm/_logs/2021-09-16T07_26_28_903Z-debug.log Install for [ '@iobroker/create-adapter@latest' ] failed with code 1Kann mir hier jemand sagen warum er das postinstall script nicht findet?
Grüße
Daniel -
Hallo,
Wenn ich diesen Befehl eingebe:npx @iobroker/create-adapterBekomme ich diese Fehlermeldung:
internal/modules/cjs/loader.js:818 throw err; ^ Error: Cannot find module '/root/.npm/_npx/526/lib/node_modules/@iobroker/create-adapter/node_modules/protobufjs/scripts/postinstall' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15) at Function.Module._load (internal/modules/cjs/loader.js:667:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] } npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! protobufjs@6.11.2 postinstall: `node scripts/postinstall` npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the protobufjs@6.11.2 postinstall 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! /root/.npm/_logs/2021-09-16T07_26_28_903Z-debug.log Install for [ '@iobroker/create-adapter@latest' ] failed with code 1Kann mir hier jemand sagen warum er das postinstall script nicht findet?
Grüße
Daniel@rde-master sagte in ioBroker adapter creator Fehler: Cannot find module:
/root/.npm/
Ob man sowas im root-Kontext fabrizieren sollte weiß ich auch nicht.
Was machst du, wenn da irgendwas komplett querschießt? -
@rde-master Noch nie gesehen... Welche node und npm-Version hast du am Laufen?
Malnpm cache clean --forceprobiert, um nen möglicherweise korrupten npm cache zu leeren?Hallo @Thomas-Braun hatte recht.
Ich hab ihn mit einem User gestartet, dann läuft er.Also nicht als root ausführen :-)
DANKE!
-
Hallo @Thomas-Braun hatte recht.
Ich hab ihn mit einem User gestartet, dann läuft er.Also nicht als root ausführen :-)
DANKE!
@rde-master sagte in [gelöst]ioBroker adapter creator Fehler: Cannot find module:
Also nicht als root ausführen
Mein konstantes Reden... g
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden