Reputation: 51
I want to use vue-cli to initialize my vue project, but the vue and wepack version is the latest, This is not what I want, The older version is what I want, So I want to know how to install other versions of vue or webpack using vue-cli not the latest, Thanks!
Upvotes: 5
Views: 18747
Reputation: 16513
I am assuming this is because you have installed latest vue-cli
which is currently 3.0.0-beta.10
and vue init
is no longer the standard way of initiating new project.
So, in your scenario, for v3 version you should use: vue create test-app
.
Though if you still like to use vue init
then do either of it:
vue-cli
by just running npm install -g [email protected]
, Side Note: You may need delete latest v3 manually if above mentioned suggestions doesn't work. Just run which vue
you will find where v3 is installed and delete it manually and then run npm install -g [email protected]
. Hope this should help.
Other places you can find help:
Upvotes: 4
Reputation: 3756
Use the command vue init <template> <project-name>
If you want to build using the webpack
template, then
vue init webpack webpack-example
Depending on your current system, you might have to install an additional package for the above command to work.
npm install --global vue-init
Upvotes: 1