Short answer
How to learn Vue.js is to finish the official in-browser tutorial, then create a local project with the documented Node.js versions. The introduction page says you are reading the Vue 3 docs, and Vue 2 support ended on December 31, 2023. The tutorial assumes HTML, CSS, and JavaScript. It is not a full reference.
Last verified against the sources listed below.
Key takeaways
- The introduction page says these docs are for Vue 3. Vue 2 support ended on December 31, 2023.
- The tutorial is 15 short steps in the browser, from rendering through slots, and it is not a full guide.
- The quick start asks for Node.js ^22.18.0 or >=24.12.0 before npm create vue@latest.
- If a scaffold prompt is unclear, the quick start says to choose No.
- A CDN script can mount Vue 3 without a build. Single-file components need the build setup.
- ES modules fail on file://. The quick start says to serve the page over http.
How to learn Vue.js starts with the official tutorial in the browser, then a project on your own machine. The introduction says you are reading the Vue 3 documentation, and that Vue 2 support ended on December 31, 2023.
JavaScript is the language underneath. MDN describes it as a programming language with first-class functions, used in web pages and in runtimes such as Node.js. Vue does not replace that language. It adds a component model on top of HTML, CSS, and JavaScript.
What should you know first?
You need basic HTML, CSS, and JavaScript before the framework will make sense. The introduction and the tutorial both say that, and both say prior experience with another framework is optional.
Node.js calls itself a free, open-source, cross-platform JavaScript runtime for servers, web apps, command-line tools, and scripts. You do not need it for the browser tutorial. You do need it for the local scaffold.
The quick start asks for familiarity with the command line and for Node.js ^22.18.0 or >=24.12.0, as of the page read in December 2026. Vite’s guide lists a lower bar for Vite itself, Node.js 20.19+ or 22.12+, and warns that some templates need a higher version. When the two pages disagree, use the Vue quick start for a Vue app.
CSS is one of the three prerequisites the tutorial names. You do not need a design system. You need to read a rule and a template.
What does the browser tutorial cover?
The tutorial gives you a short, hands-on pass, and it says it is not comprehensive. It has 15 steps. You edit the sample, the result updates, and a Show me button reveals a working answer if you are stuck. The opening step says beginners should keep the default settings.
The steps, in order, are:
- Getting started, including the HTML, CSS, and JavaScript prerequisite.
- Declarative rendering, in a single-file component.
- Attribute bindings with
v-bind. - Event listeners with
v-on. - Form bindings that pair those two ideas.
- Conditional rendering with
v-if. - List rendering with
v-for. - A computed property on the list from the previous step.
- Lifecycle hooks and template refs.
- Watchers for a side effect when state changes.
- Components, by importing a child into a parent.
- Props, so the child can take input.
- Emits, so the child can send an event up.
- Slots, so the parent can pass template fragments down.
- A closing step that sends you to the quick start for a real project.
An API Preference switch at the top selects the Options API or the Composition API. An SFC mode shows the single-file format, and an HTML mode shows usage without a build step.
The introduction says the Options API groups logic in options such as data, methods, and mounted. The Composition API declares state with imported functions, often inside script setup.
How do you create a project on your computer?
Install a Node.js version the quick start accepts, open a terminal in the folder where the project should live, and run the scaffold. One action per step:
- Install Node.js
^22.18.0or>=24.12.0. - In the parent folder, run
npm create vue@latest. The same page also shows pnpm, yarn, bun, andvp create vue@latest. - Answer the prompts. They cover TypeScript, JSX, Vue Router, Pinia, Vitest, an end-to-end tool (Cypress, Nightwatch, or Playwright), ESLint, Prettier, and an experimental Vue DevTools 7 prompt.
- If you are unsure, choose No, which is what Enter does.
- Change into the new folder, run
npm install, thennpm run dev. - When you are ready to ship, run
npm run build. The output lands in./dist.
The generated samples use the Composition API and script setup. The quick start points the recommended editor setup at Visual Studio Code plus the Vue - Official extension. Vite describes the tool under that scaffold as a dev server, including hot module replacement over native ES modules, plus a build command.
The SVG to JSX converter turns a graphic into a React component. It does not emit a .vue file. It is a nearby front-end task, not a step in this setup.
Can you try Vue without a build tool?
Yes. The quick start shows a script tag that loads the global build, and a module import for the ES build. Both examples call createApp and mount on an element whose id is app.
The global build URL on that page is the Vue 3 file vue.global.js from a CDN. Top-level APIs sit on a global Vue object. There is no build step, which suits a static page or a backend template. You cannot author single-file components this way.
The module form uses script type="module" and the vue.esm-browser.js build. An import map can alias the bare specifier vue to that URL. The quick start says import maps need a browser in the support range, and specifically Safari 16.4 or newer.
Those CDN examples are development builds. The same page says to read the production deployment guide before you use a CDN build on a live site. It also names petite-vue as a smaller option for the kind of page where a light script used to be enough, and it says to reach for Nuxt, Vike, Astro, or Quasar only when you need server rendering or the extra features those frameworks add.
What usually breaks on the first run?
The first failures are setup mismatches, and the quick start already names the usual ones.
| Symptom | What the official page says to do |
|---|---|
| Opening a module page as a file shows an error | ES modules do not run on file://. Serve the folder over http, for example with npx serve. |
| An import map works in one browser and not another | Stay inside the published support range. Safari support starts at 16.4. |
| A scaffold question is unfamiliar | Choose No and continue. You can add the option later. |
| Old Vue 2 samples do not match the docs | These pages are Vue 3. Vue 2 support ended on December 31, 2023. |
| The tutorial feels thin | It says it is not comprehensive. Read the guide after the last step. |
npm run dev never starts |
Confirm the Node.js version matches ^22.18.0 or >=24.12.0, then run install in the project folder. |
The introduction’s learning paths are the tutorial, the guide, and the examples. Doing them in that order matches the pages: a short feel for the syntax, a local app with a known Node.js version, then the guide for the parts the tutorial skipped.
Frequently asked questions
Do I need Node.js to try the Vue tutorial?
No. The tutorial runs in the browser and lets you edit the sample and see the result update. Node.js comes in when you leave the tutorial and create a project on your machine. The quick start names two acceptable Node.js ranges for that scaffold, ^22.18.0 or >=24.12.0. Vite's own guide lists a lower floor, 20.19 or 22.12, and says some templates need more. For a Vue app, follow the Vue quick start.
Should a beginner pick the Options API or the Composition API?
The introduction says both styles cover common cases and share the same core ideas. For learning, it says to pick the style that looks easier, and you can learn the other later. The tutorial has an API Preference switch and recommends defaults for beginners. For a full application with a build, the same page recommends the Composition API plus single-file components. Without a build, or for small enhancements, it points to the Options API.
What is a single-file component?
The introduction describes a single-file component as one file, usually ending in .vue, that holds the component's JavaScript, template, and CSS. It calls that the recommended way to author components when you use a build. The quick start's generated example uses the Composition API and script setup, not the Options API. A plain script tag from a CDN cannot use that file format. You would keep the template in HTML or in a JavaScript string.
Why does the local HTML file fail when I open it?
The quick start says ES modules do not work over the file protocol, which is what the browser uses when you double-click an HTML file. Modules need http. With Node.js installed, run npx serve in the folder that holds the file, or use any static server that sends the right MIME types. Import maps have a separate limit. The same page says they need a browser in the support range, and Safari support starts at 16.4.
Is the tutorial enough to ship an app?
The tutorial's last step says you have a feel for the work and that the steps moved fast and skipped detail. It points you to the quick start for a real project, and the introduction says to read the guide for the full framework. The quick start's production command is npm run build, which writes a dist folder. A framework such as Nuxt is optional. The quick start says to add one when you need server rendering.
Sources
- Introduction · Vue.js, 2026
- Quick Start · Vue.js, 2026
- Tutorial · Vue.js, 2026
- Node.js · Node.js, 2026
- JavaScript · MDN Web Docs, 2026
- Getting Started · Vite, 2026