Moin,
ich habe da ein paar Probleme Dein Dashboard zum starten zu bekommen. Ich habe mich mehr oder weniger an die Dev-Doc gehalten. Mit yarn startet gar nix …
mogel@Lucretia:~/temp/dashboard/dashboard-master/server$ yarn install
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'install'
mogel@Lucretia:~/temp/dashboard/dashboard-master/server$ yarn start
00h00m00s 0/0: : ERROR: [Errno 2] No such file or directory: 'start'
… und mit npm kommen Fehler.
mogel@Lucretia:~/temp/dashboard/dashboard-master/server$ npm start
> dashboard-server@1.5.0 start /home/mogel/temp/dashboard/dashboard-master/server
> ts-node src/index.ts
✖ { Error: EISDIR: illegal operation on a directory, read
at Object.readSync (fs.js:498:3)
at tryReadSync (fs.js:332:20)
at Object.readFileSync (fs.js:369:19)
at Object.config (/home/mogel/temp/dashboard/dashboard-master/server/node_modules/dotenv/lib/main.js:96:29)
at Object.<anonymous> (/home/mogel/temp/dashboard/dashboard-master/server/src/config.ts:5:35)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Module.m._compile (/home/mogel/temp/dashboard/dashboard-master/server/node_modules/ts-node/src/index.ts:1056:23)
at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/mogel/temp/dashboard/dashboard-master/server/node_modules/ts-node/src/index.ts:1059:12)
at Module.load (internal/modules/cjs/loader.js:653:32) errno: -21, syscall: 'read', code: 'EISDIR' }
✖ Missing API key for [openWeatherMap]
✖ Missing API key for [twitter]
✖ Missing API key for [unsplash]
✖ Missing API key for [youtube]
/home/mogel/temp/dashboard/dashboard-master/server/node_modules/ts-node/src/index.ts:513
return new TSError(diagnosticText, diagnosticCodes)
^
TSError: ⨯ Unable to compile TypeScript:
src/routes/passthrough.ts:24:47 - error TS2345: Argument of type 'string | ParsedQs | string[] | ParsedQs[] | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
24 const axiosResponse = await axios.get(url, { ttl: ttl || 5 * 60 });
~~~
at createTSError (/home/mogel/temp/dashboard/dashboard-master/server/node_modules/ts-node/src/index.ts:513:12)
at reportTSError (/home/mogel/temp/dashboard/dashboard-master/server/node_modules/ts-node/src/index.ts:517:19)
at getOutput (/home/mogel/temp/dashboard/dashboard-master/server/node_modules/ts-node/src/index.ts:752:36)
at Object.compile (/home/mogel/temp/dashboard/dashboard-master/server/node_modules/ts-node/src/index.ts:968:32)
at Module.m._compile (/home/mogel/temp/dashboard/dashboard-master/server/node_modules/ts-node/src/index.ts:1056:42)
at Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Object.require.extensions.(anonymous function) [as .ts] (/home/mogel/temp/dashboard/dashboard-master/server/node_modules/ts-node/src/index.ts:1059:12)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
at Function.Module._load (internal/modules/cjs/loader.js:585:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! dashboard-server@1.5.0 start: `ts-node src/index.ts`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the dashboard-server@1.5.0 start 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! /home/mogel/.npm/_logs/2021-05-27T05_17_52_491Z-debug.log
mogel@Lucretia:~/temp/dashboard/dashboard-master/server$
ähm … Hilfe?!
hand, mogel
mogel@Lucretia:~/temp/dashboard/dashboard-master/server$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.2 LTS"