Create Vue project with scaffolding

1 .Create file address

First create a folder, I use the HBuilder editor, then drag the folder into the editor and open CMD in the folder you created

 2.Input installation command:

    1). npm install –global vue-cli

    2). vue init webpack my-project

When you install second, the page will appear.

 

During installation, you will be asked whether you need to configure routing, testing and so on.

    Project name Project name (enter)
    Porject description Project description (enter)
    Author (enter)
    Install vue-router Do you follow the Vue routing (y)?
    use eslint … Do you use eslint to check your code (n)?
    set up unit tests…. Test (n)
    set up e2e… Test (n)
    yes use NPM… (enter)
    

 

  And then he’ll install it himself, and when he’s done you’ll look in your folder and you’ll find something out.
    Then enter the folder that is generated. CD my-project enters and executes NPM run dev.
 

Leave a Reply

Your email address will not be published. Required fields are marked *