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

nuxi upgrade

The upgrade command upgrades Nuxt 3 to the latest version.
Terminal
npx nuxi upgrade [--force|-f]

The upgrade command upgrades Nuxt 3 to the latest version.

OptionDefaultDescription
--force, -ffalseRemoves node_modules and lock files before upgrade.