Edit

Share via


Install Vue.js on Windows Subsystem for Linux

A guide to set up a Vue.js development environment on Windows Subsystem for Linux (WSL). For background, see the Vue.js overview.

Vue can be installed directly on Windows or on WSL. WSL is recommended if you plan to interact with a Node.js backend, deploy to Linux servers, or follow tutorials that use Bash commands.

Prerequisites

Important

Store your project files inside the WSL filesystem (e.g., ~/projects), not on the mounted Windows drive (/mnt/c/). Working across the filesystem boundary significantly slows down install and build times.

Create a Vue project

The recommended way to start a new Vue 3 project is npm create vue@latest, which uses create-vue — the official Vite-based scaffolding tool:

  1. Open your WSL terminal (e.g., Ubuntu).

  2. Navigate to your projects directory:

    mkdir -p ~/projects
    cd ~/projects
    
  3. Create a new Vue project:

    npm create vue@latest
    

    The installer prompts you to name your project and choose optional features (TypeScript, JSX support, Vue Router, Pinia state management, Vitest, ESLint).

  4. Navigate into the project folder, install dependencies, and start the dev server:

    cd <your-project-name>
    npm install
    npm run dev
    

    Your app will be available at http://localhost:5173.

Additional resources