Installing vue on fall 2022
Since the arrival of Vue 3, vue tooling has changed and now it’s quite difficult to understand which tool is recommended to install a specific version of VueJs.
Vue 2.7 with webpack
I didn’t find a way to install webpack based Vue 2.7 directly, so I suggest to install the 2.6 version with the commands below:
yarn add @vue/cli
node_modules/.bin/vue create project
cd project
yarn run serve
and then upgrade to version 2.7:
npm add vue@^2.7.0
Vue 2.7 with vite
You can install vite based Vue 2.7 through this command:
npm init vue@2
Vue 3 with vite
Last, you can easily install Vue 3 with vite:
npm init vite@latest my-vue-app