Steps to create vue-cli3

1. Install webpack 4 or higher globally

npm install webpack -g
installs the latest version;

2. Install vue-cli3 globally;

npm install -g @vue/cli
npm install -g vue-cli This is version 2 installation, pay attention to the distinction


vue-cli 3 is used with webpack4, web-cli 2 is used with webpack 3, vue-cli2 can read my other articles;


3. Create a project under the specified folder

vue create my-project

will pop up and let you choose preset; the first is the default, the second is manual, and novices can directly choose the default;

4. Jump to the project

cd vuex

5. Run the project

npm run serve
Insert picture description here
At this time, as long as you open http://localhost:8080/, you can see the following pageInsert picture description here

Guess you like

Origin blog.csdn.net/weixin_43236062/article/details/101174299