Project initialization for Vue project development

One, use the graphical interface to create

1. Open cmd [shortcut win+R]
Insert picture description here
2. Enter the command and it
Insert picture description here
will automatically jump to the link or copy http://localhost:8000 to the browser to open
Bold style
3. Enter the project manager => After the installation is complete,
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
Insert picture description here
select the project to be created Yes (it will take some time to download)

4. Configuration plug-in (Element)
Insert picture description here
Insert picture description here
Insert picture description here
5. Configuration dependency (axios)
Insert picture description here
Insert picture description here

Two, use the command to create a project

1. Command statement

Vue CLI2 initialization project

vue init webpack my-project

Vue CLI3 initialization project

vue create my-project

2. Enter cmd (other terminals are also available)
(1) Use Vue CLI2
Insert picture description here

(2) Use Vue CLI3 to
Insert picture description here
select and press Enter, and the project will be created after downloading for a period of time
Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44932349/article/details/115369504