NEWS
[gelöst]ioBroker adapter creator Fehler: Cannot find module
-
Hallo,
Wenn ich diesen Befehl eingebe:npx @iobroker/create-adapter
Bekomme 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 1
Kann mir hier jemand sagen warum er das postinstall script nicht findet?
Grüße
Daniel -
@rde-master Noch nie gesehen... Welche node und npm-Version hast du am Laufen?
Malnpm cache clean --force
probiert, um nen möglicherweise korrupten npm cache zu leeren? -
@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? -
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