Vue- create project

Install a global vue-cli

  The terminal performs: sudo npm install --global vue-cli

    windows system: npm install --global vue-cli

  

 

Check whether the installation was successful

   Terminal type: vue --version

  

 

Project Initialization

  Enter the specified project directory

  Input terminal: vue init webpack "Project Name"

  If the project name entered exists in this directory, you will be prompted:  Target Directory EXISTS the Continue.?

  Below, needs to be rotated according to related files are installed vue

  

  Into the creation of the Project carried out relevant installation vue

  cd project

  Execution: npm install

  

 

Configuration File

Modify the port number: port can be set to default to 8080 they want, such as 8081 

 

Startup project

  Execution: npm run dev

  

  After running the browser open: HTTP: // localhost: 8080

  

Guess you like

Origin www.cnblogs.com/tynam/p/11209959.html