To install Vue you can simply download and include it with a script
tag. Vue will be registered as a global variable.
You can download two versions of Vue.js:
Development version from http://v1.vuejs.org/js/vue.js
Production version from http://v1.vuejs.org/js/vue.min.js
You can find Vue.js also on jsDelivr (http://cdn.jsdelivr.net/vue/1.0.26/vue.min.js) or cdnjs (https://cdnjs.cloudflare.com/ajax/libs/vue/1.0.26/vue.min.js).
NPM is the recommended installation method when building large-scale apps with Vue.js. It pairs nicely with a CommonJS module bundler such as Webpack (http://webpack.github.io/) or Browserify (http://browserify.org/):
# latest stable $ npm install vue # latest stable + CSP-compliant $ npm install [email protected] # dev build (directly from GitHub): $ npm install vuejs/vue#dev
# latest stable $ bower install vue
Tip
For more installation instructions and updates take a loot at the Vue.js Installation Guide (https://v1.vuejs.org/guide/installation.html).
In most book examples we are including Vue.js from the CDN, although you are free to install it using any method you like.