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

nuxi prepare

The prepare command creates a .nuxt directory in your application and generates types.
Terminal
npx nuxi prepare [--log-level] [rootDir]

The prepare command creates a .nuxt directory in your application and generates types. This can be useful in a CI environment or as a postinstall command in your package.json.

OptionDefaultDescription
rootDir.The root directory of the application to prepare.