Nuxt 2 is reaching End-of-Life on June 30th, 2024.

nuxi typecheck

The typecheck command runs vue-tsc to check types throughout your app.

Terminal
npx nuxi typecheck [--log-level] [rootDir]

The typecheck command runs vue-tsc to check types throughout your app.

OptionDefaultDescription
rootDir.The directory of the target application.
This command sets process.env.NODE_ENV to production. To override, define NODE_ENV in a .env file or as a command-line argument.
Read more on how to enable type-checking at build or development time.