Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
- Install Windows Subsystem for Linux (WSL), including a Linux distribution (like Ubuntu) running in WSL 2 mode. Verify with:
wsl -l -v - Install Node.js on WSL 2: This includes a version manager, package manager, Visual Studio Code, and the Remote Development extension.
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:
Open your WSL terminal (e.g., Ubuntu).
Navigate to your projects directory:
mkdir -p ~/projects cd ~/projectsCreate a new Vue project:
npm create vue@latestThe installer prompts you to name your project and choose optional features (TypeScript, JSX support, Vue Router, Pinia state management, Vitest, ESLint).
Navigate into the project folder, install dependencies, and start the dev server:
cd <your-project-name> npm install npm run devYour app will be available at
http://localhost:5173.
Additional resources
Windows developer