Updated: 18 November 2026 · Applies to: Ubuntu 24.04, Debian 12, AlmaLinux 9 and Rocky Linux 9
Vue.js projects are now created with create-vue, based on Vite. (Vue CLI, used in older guides, is in maintenance mode.)
The operating system versions in the original guide (CentOS 7, Ubuntu 16.04/18.04, Debian 8/9) are no longer supported, so this guide uses Ubuntu 24.04, Debian 12, AlmaLinux 9 and Rocky Linux 9.
Install Node.js (current LTS)
Use the NodeSource packages for the current Long-Term-Support release (24.x at the time of writing; check nodejs.org):
curl -fsSL https://deb.nodesource.com/setup_24.x | bash - # Ubuntu / Debian apt install nodejs curl -fsSL https://rpm.nodesource.com/setup_24.x | bash - # AlmaLinux / Rocky dnf install nodejs
Check with node -v and npm -v.
Tip: For development machines, or several Node versions side by side, use nvm instead: install it from its GitHub page, then nvm install --lts.
Create a project
npm create vue@latest cd <project-name> npm install npm run dev -- --host 0.0.0.0
The development server runs on port 5173. For production, run npm run build and serve the dist folder with Nginx or Apache.
Note: Do not expose the development server to the internet; open port 5173 only to your own IP while developing.