Bug description
In the Prisma Postgres Quickstart, the "Initialize a TypeScript project" section recommends:
# pnpm
pnpm init
pnpm add typescript tsx @types/node --save-dev
pnpm dlx tsc --init # ← problematic
# yarn
yarn init
yarn add typescript tsx @types/node --dev
yarn dlx tsc --init # ← problematic
The problem: pnpm dlx and yarn dlx always fetch the package from the npm registry — they never check locally installed packages. The npm package named tsc is not the TypeScript compiler — it is a deprecated placeholder package (https://www.npmjs.com/package/tsc) (v2.0.4, last updated 2022, ~670k downloads/week mostly from accidental use) that prints "This is not the tsc command you are looking for".
Since typescript was just installed in the previous step, the correct command would be:
pnpm tsc --init # runs the local node_modules/.bin/tsc
This does not affect the npm and bun tabs, because npx and bunx check node_modules/.bin/ first before falling back to the registry.
To reproduce
mkdir repro && cd repro
pnpm init
pnpm add typescript tsx @types/node --save-dev
pnpm dlx tsc --init
# → "This is not the tsc command you are looking for"
Expected behavior
pnpm dlx tsc --init should invoke the real TypeScript compiler (from the typescript package) and create a tsconfig.json.
Suggested fix
Replace pnpm dlx tsc --init with pnpm tsc --init and yarn dlx tsc --init with yarn tsc --init in the quickstart documentation.
Environment
- Doc URL: https://www.prisma.io/docs/prisma-orm/quickstart/prisma-postgres
- pnpm version: 11.12.0
- pkg tsc version: 2.0.4 (deprecated, no relation to typescript)
Bug description
In the Prisma Postgres Quickstart, the "Initialize a TypeScript project" section recommends: