* You can also use Vue-cli to setup your project.
CDN : For prototyping or learning purposes, you can use the latest version with:
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.0/dist/vue.js"></script>
For production, we recommend linking to a specific version number and build to avoid unexpected breakage from newer versions:
<script src="https://cdn.jsdelivr.net/npm/vue@2.7.0"></script>
If you are using native ES Modules, there is also an ES Modules compatible build:
<script type="module">
import Vue from 'https://cdn.jsdelivr.net/npm/vue@2.7.0/dist/vue.esm.browser.js'
</script>
Vue is also available on
unpkg and
cdnjs (cdnjs takes some time to sync so the latest release may not be available yet).
version in your published site, replacing vue.js with vue.min.js. This is a smaller build optimized for speed instead of development experience.
NPM : NPM is the recommended installation method when building large scale applications with Vue. It pairs nicely with module bundlers such as
Webpack or
Browserify. Vue also provides accompanying tools for authoring
Single File Components.
# latest stable
$ npm install vue
CLI : Vue provides an
official CLI for quickly scaffolding ambitious Single Page Applications. It provides batteries-included build setups for a modern frontend workflow. It takes only a few minutes to get up and running with hot-reload, lint-on-save, and production-ready builds. See the
Vue CLI docs for more details.
Source : v2.vuejs.org