Quick Start

Starting fresh? Getting started with Nuxt 3 is straightforward!

Play online

You can start playing with Nuxt 3 in your browser using our online sandboxes:

Play on StackBlitz Quick Start - 图1 Play on CodeSandbox Quick Start - 图2

Prerequisites

Before getting started, please make sure you have installed the recommended setup.

* If you already have Node.js installed, check with node --version that you are using v14 or v16.

If you have enabled Take Over Mode or installed the TypeScript Vue Plugin (Volar) you can disable generating the shim for *.vue files:

  1. export default defineNuxtConfig({
  2. typescript: {
  3. shim: false
  4. }
  5. })

New project

Open a terminal, or from Visual Studio Code, open an integrated terminal and use the following command to create a new starter project:

npx

  1. npx nuxi init nuxt3-app

pnpm

  1. pnpm dlx nuxi init nuxt3-app

Open nuxt3-app folder in visual studio code:

  1. code nuxt3-app

Install the dependencies:

yarn

  1. yarn install

npm

  1. npm install

pnpm

  1. pnpm install --shamefully-hoist

Development server

Now you’ll be able to use yarn dev to start your nuxt app in development mode:

yarn

  1. yarn dev -o

npm

  1. npm run dev -- -o

pnpm

  1. pnpm run dev -- -o

Well done! A browser window should automatically open for http://localhost:3000

Next steps

Now that you’ve created your Nuxt 3 project, you are ready to start building your application.