VUE-CLI2 project initialization process

1. Initialize the project (vue init webpack vuecli2test)

 

 Solution: C: \ Program Files \ nodejs \ node_globall directory, delete the vue.ps1

2.

 3. Next, create a project (vue init webpack project name) (to create folders), folder names can not have capitalized

(1) Project name: Project name (not uppercase), Enter, then defaults to the folder name

(2) Project description (A Vue.js project): Project Description

(3) Author: Author 

(4)Runtime + Compiler: recommended for most users
Runtime-only: about 6KB lighter min+gzip, but templates (or any Vue-specific HTML) are ONLY allowed in .vue files - render functions are required elsewhere

(These two can be selected by up and down arrows)

If you select above Runtime + Compiler:

   Install vue-router (Y / n): whether the installation route

  Use ESLint to lint your cade (Y / n): whether to do some limitations (specification) of the JS Code

   Set up unit tests (Y / n): Test Unit

  Setup e2e tests with Nightwatch (Y / n):?-End test

  ? Should we run `npm install` for you after the project has been created? (recommended) (Use arrow keys)

    > Yes, use NPM
    Yes, use the Yarn
    No, the I by Will handle that myself: managing the project, is using npm or yarn

  

Guess you like

Origin www.cnblogs.com/yaya-003/p/11867998.html