Vue Js Install

Posted on  by admin
-->

A guide to help you set up a Vue.js development environment on Windows. Learn more on the Vue.js overview page.

Vue can be installed directly on Windows or on the Windows Subsystem for Linux (WSL). We generally recommend that you install Vue on WSL if you are planning to interact with a NodeJS backend, want parity with a Linux production server, or plan to follow along with a tutorial that utilizes Bash commands. For more info, see Should I install on Windows or Windows Subsystem for Linux?.

Prerequisites

  • Compatibility Note: Vue.js does not support IE8 and below. Simply download and include with a script tag. Vue will be registered as a global variable.

Install Vue.js

To install Vue.js:

  1. 235.74kb, plenty of comments and debug/warning messages.71.44kb minified / 23.22kb gzipped.

  2. Available on jsdelivr or cdnjs (takes some time to sync so the latest version might not be available yet). Some environments, such as Google Chrome Apps, enforces Content Security Policy (CSP) and does not allow the use of new Function() for evaluating expressions.

  3. In these cases you can use the CSP-compliant build instead.

Check the version number you have installed by using the command: vue --version.

The standalone downloads or versions installed via Bower are wrapped with UMD so they can be used directly as an AMD module.

Let’s Get Started. Caught a mistake or want to contribute to the documentation? Fork this site on Github! You’re browsing the documentation for v2.x and earlier.

Install Vue CLI

Vue CLI is a toolkit for working with Vue in your terminal / command line. It enables you to quickly scaffold a new project (vue create), prototype new ideas (vue serve), or manage projects using a graphical user interface (vue ui). Vue CLI is a globally installed npm package that handles some of the build complexities (like using Babel or Webpack) for you. If you are not building a new single-page app, you may not need or want Vue CLI.

To install Vue CLI, use npm. You must use the -g flag to globally install in order to upgrade (vue upgrade --next):

To learn more about additional plugins that can be added (such as linting or Apollo for integrating GraphQL), visit Vue CLI plugins in the Vue CLI docs.

Additional resources

  • For v3.x, click here. Vue does not support IE8 and below, because it uses ECMAScript 5 features that are un-shimmable in IE8.
  • However it supports all ECMAScript 5 compliant browsers.