Create a project using Visual Studio Code

1. Step 1: Create an empty folder, open the Visual studio Code software, and add the folder to the workspace

2. Step 2: Open the terminal and enter the command: npm install -g @vue/cli to install vue-cli

3. Step 3: Create a project folder, command: vue create name

4. Step 4: Select the required configuration, choose the default second one

5. Step 5: Use the cd demo command to enter the folder, and then enter npm run serve to run the project

6. Step 6: Install routing, command: npm install --save vue-router@3, you need to install the corresponding routing according to your own version

 7. Step 7: Add elementui component, command: vue add element

 Choose to import all or import on demand

Select the language to use

8. Step 8: Delete the existing content before the project, and then write the content you need

Guess you like

Origin blog.csdn.net/weixin_45612718/article/details/125079038