Vue.js can be installed via CDN by adding a script tag in the HTML, or via npm with npm install vue. Using a CDN is good for quick setup, but npm is better for larger projects with a build setup.
npm install vue