Home  >  Article  >  Web Front-end  >  vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

WBOY
WBOYforward
2022-08-08 17:59:111403browse

This article brings you relevant knowledge about vue, which mainly introduces the related issues about the scaffolding interactive command line and graphical interface installation steps. Let’s take a look at it together. I hope Helpful to everyone.

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

[Related recommendations: javascript video tutorial, vue.js tutorial

vue scaffolding interactive Command line and graphical interface installation steps

Interactive command line

Ensure node is installed

Install vue scaffolding command: npm install -g @vue /cli

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

Installation successful Use vue -V to view the installed version

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

If it has been installed before, use the npm uinstall vue-cli -g command to uninstall

Create project

3.1 Enter vue create vue_proj and press Enter (select the second item to create manually and then Enter)

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

3.2 Select the three configurations in the picture, press the space button to select, and press Enter to confirm

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

3.3 Ask whether to install historical mode routing, choose to install hash mode, select n and press Enter

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

##3.4 Ask about the version, select Standard config and press Enter

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

3.5 Ask when to perform history verification, select default and press Enter

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

3.6 Create a separate configuration file, select the first item Then press Enter

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

3.7 Whether to save the current selection as a template, you can choose yes or no, here select yes and press enter

Template name: vue_model_01

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

3.8 Wait for the creation to be completed and cd to enter the project root directory, then run npm run serve to start the project

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

Finally copy the address and open it in the browser

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

GUI creation

First step, enter vue ui

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

Click Create and create a new project here

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

6. Fill in the file Name and initialize git repository

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

7. Choose manual, automatic, or previously created template, choose manual here (first time)

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

8.Select the following four

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

9.Select the third one and click Create Project

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

10 Then enter the name () to create the project, save the preset or not save it

vue scaffolding interactive command line and graphical interface installation steps (pictures and texts)

11 Then Just run it

【Related recommendations: javascript video tutorial, vue.js tutorial

The above is the detailed content of vue scaffolding interactive command line and graphical interface installation steps (pictures and texts). For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:爱玛网. If there is any infringement, please contact admin@php.cn delete