Upgrading a Nuxt project might sound intimidating, but with Nuxt 4 it’s surprisingly fast. In this blog, I’ll show how I upgraded my Nuxt 3 boilerplate to Nuxt 4 in under 5 minutes, step-by-step. If you’ve been thinking about moving to Nuxt 4 for its faster dev server, improved hot reloads, and modern features, this guide is for you.
Start by updating Nuxt to the latest v4 version using your package manager:
npm install nuxt@^4.0.0
# or
yarn add nuxt@^4.0.0
# or
pnpm add nuxt@^4.0.0
# or
bun add nuxt@^4.0.0
This ensures your project is using the official Nuxt 4 release.
Nuxt provides a codemod tool to handle automatic migrations
codemod@latest nuxt/4/migration-recipe
If you select the nuxt/4/file-structure codemod, it will reorganize your project into Nuxt 4’s recommended structure:
app/
├─ assets/
├─ components/
├─ composables/
├─ layouts/
├─ middleware/
├─ pages/
├─ plugins/
├─ utils/
├─ app.vue
├─ app.config.ts
└─ error.vue
locales/ or third-party configs, move them into app/ or shared/.That’s it! Your project should now be fully upgraded to Nuxt 4. Run your dev server:
npm run dev
# or yarn dev / pnpm dev / bun dev
For more details or troubleshooting, see the official Nuxt 4 upgrade guide
Upgrading from Nuxt 3 to Nuxt 4 doesn’t have to be scary or time-consuming. With the official migration codemods and a few simple steps, you can modernize your project in under 5 minutes. Faster dev server, improved hot reloads, and a cleaner project structure mean you can focus on building features, not boilerplate.
Top Nuxt Starter Kits for 2026 Nuxt.js starter templates
Discover the top 5 SaaS starter kits to launch your software faster. Compare features, pricing, and tech stacks, including Nuxt-based solutions like ShipAhead.
Vibe Coding a SaaS with a Boilerplate
Discover why starting from scratch slows development, and how ShipAhead templates combined with AI accelerate SaaS projects.