How to Install Vue 2 | npm install vue
Note: Thistutorialisapartof ourfreecourse:VueTutorialin2018-LearnVue.jsbyExample[1]In2018,Vue.jsisgrowinginpopularityandifyouvelandedonthispage,chancesare-- youwanttostartlearninghowtousethispowerfulJavaScriptFramework.ImgoingtoshowyouexactlyhowtogetupandrunningwithVue.js2inthistutorial.ThereareseveralmethodsfromwhichyoucaninstallVue,andweregoingtocoverthemall.TheresaquickandeasymethodthatinvolvessimplyreferencingaCDN,amethodthatusestheNodePackageManager(NPM)tointegrateitintoexistingprojects...
Note: This tutorial is a part of our free course: Vue Tutorial in 2018 - Learn Vue.js by Example[1]
In 2018, Vue.js is growing in popularity and if youve landed on this page, chances are -- you want to start learning how to use this powerful JavaScript Framework.
Im going to show you exactly how to get up and running with Vue.js 2 in this tutorial. There are several methods from which you can install Vue, and were going to cover them all.
Theres a quick and easy method that involves simply referencing a CDN, a method that uses the Node Package Manager (NPM) to integrate it into existing projects, and then the Vue CLI.
Lets get started.
Installing Vue through a CDNThe easiest and quickest way of installing Vue is by directly including Vue via a CDN (Content Delivery Network) in a <script> tag. This means that instead of Vue residing on your own server, it will be delivered from a separate server. Technically, you ar...