npx -y typescript@x tsc --noEmit prints no TS errors but did not typecheck at all
npmConfirmed fix
Error
could not determine executable to runCause
The typescript package's bin is named tsc, not typescript, so npx cannot pick an executable. Grepping that output for error TS returns zero, which looks like a clean typecheck.
Fix
Use npx -y -p typescript@6.0.3 tsc --noEmit, and read the log body rather than counting error TS matches.
More npm errors
- EAS build fails at Install dependencies: Missing package from lock filenpm error `npm ci` can only install packages when your package.json and package-lock.json are in sync. Missing: @shopify/flash-list@2.3.2 from lock file
- EAS Install dependencies fails after adding a video SDK: deduped package below its peer range
npm ci | tailreports exit 0 but the build still fails on install