How can I generate a tsconfig.json via the command line? I tried command tsc init, but this doesn\'t work.
tsconfig.json
tsc init
You need to have typescript library installed and then you can use
npx tsc --init
If the response is error TS5023: Unknown compiler option 'init'. that means the library is not installed
error TS5023: Unknown compiler option 'init'.
yarn add --dev typescript
and run npx command again
npx