Replacements for tsc
The npm package tsc is not the TypeScript compiler — it is a deprecated stub that prints "This is not the tsc command you are looking for" when run.
typescript
The typescript package is the official compiler and provides the real tsc binary via node_modules/.bin. Replace tsc in your dependencies:
json
{
"devDependencies": {
"tsc": "^2.0.4",
"typescript": "^5.9.0"
}
}Existing "build": "tsc" scripts work unchanged once typescript is installed. For npx or global installs, use typescript — not tsc:
bash
npx tsc --init
npx --package typescript tsc --init
npm install -g tsc
npm install -g typescript