N
Nuxt2mo ago
nvme

how can i start a v3 nuxt

how can i start a v3 nuxt
6 Replies
kapa.ai
kapa.ai2mo ago
Hi @nvme. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- To start a Nuxt 3 (v3) project, follow these steps: 1. Create a new Nuxt project
Open your terminal and run:
npm create nuxt@latest <project-name>

npm create nuxt@latest <project-name>

Replace <project-name> with your desired directory name. You can also use yarn, pnpm, or bun as alternatives:
yarn create nuxt <project-name>
pnpm create nuxt <project-name>
bun create nuxt <project-name>

yarn create nuxt <project-name>
pnpm create nuxt <project-name>
bun create nuxt <project-name>

2. Navigate to your project directory
cd <project-name>

cd <project-name>

3. Install dependencies
If you didn't install dependencies during setup, run:
npm install
# or
yarn install
# or
pnpm install
# or
bun install

npm install
# or
yarn install
# or
pnpm install
# or
bun install

4. Start the development server
npm run dev
# or
yarn dev
# or
pnpm run dev
# or
bun run dev

npm run dev
# or
yarn dev
# or
pnpm run dev
# or
bun run dev

This will start your Nuxt 3 app at <http://localhost:3000 by default. For more details, see the official Nuxt documentation: Nuxt Installation Guide ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2mo ago
<@1265695120725119036> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
nvme
nvmeOP2mo ago
that gives me v4 that gives me v4 @kapa.ai that gives me v4
kapa.ai
kapa.ai2mo ago
Let me check the knowledge base for you again. One moment! :books: ---------------------- You're correct—using the standard create command (e.g., npm create nuxt@latest) will currently give you the latest Nuxt version, which is tracking v4 in the nightly and main release channels. If you specifically want to start a Nuxt v3 project, you should use the 3.x version tag when installing Nuxt. Here’s how you can ensure you’re using Nuxt v3: 1. Create your project as usual:
npm create nuxt@latest <project-name>

npm create nuxt@latest <project-name>

2. After creation, update your package.json to use Nuxt v3:
{
"dependencies": {
"nuxt": "^3.0.0"
}
}

{
"dependencies": {
"nuxt": "^3.0.0"
}
}

Or, if you want to use the latest 3.x nightly (not v4), set:
{
"devDependencies": {
"nuxt": "npm:nuxt-nightly@3x"
}
}

{
"devDependencies": {
"nuxt": "npm:nuxt-nightly@3x"
}
}

Then, remove your lockfile (package-lock.json, yarn.lock, etc.) and reinstall dependencies. 3. Install dependencies:
npm install

npm install

4. Start the development server:
npm run dev

npm run dev

This will ensure your project uses Nuxt v3 and not v4. For more details, see the official guidance on the nightly release channel and versioning and Nuxt upgrade guide.
The nightly release channel latest tag is currently tracking the Nuxt v4 branch... You can opt in to the 3.x branch nightly releases with "nuxt": "npm:nuxt-nightly@3x"
Nightly Release Channel
If you want a stable v3, use the latest 3.x release tag as shown above. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai2mo ago
<@1265695120725119036> Kapa.ai is still learning and improving, please let me know how I did by reacting below.
DevHunteer
DevHunteer2mo ago
Use the -- -t v3 if you're using npm ! For bun -t v3

Did you find this page helpful?