How to install vue scaffolding and then create a vue project

How to install vue scaffolding and then create a vue project

  • The premise of installing vue scaffolding is that there needs to be a node environment. Nodejs does not know how to install it. See my previous blog post
  • After there is a node environment, Windows+R enter cmd and press Enter to enter the panel
    • First install the vue scaffolding input: npm install @vue/cli -g (@vue/[email protected] -g) the specific version is installed in the brackets
    • After installation, you can enter vue -V to see if the installation is successful
      Please add a picture description
    • If you need to uninstall and upgrade: npm remove @vue/cli and reinstall
  • Find a place where you want to put the vue project, click the path, enter cmd, and press Enter to enter the panel
  • Vue create project name, configure according to the prompt, and finish
    Please add a picture description
    • Choose the first or second one, you don’t need to do anything later, just wait for the generation
      Please add a picture description
    • If you choose manually customize
      1. I generally choose babel (es6 to es5 tool), route (routing), vuex (state management), css (css preprocessing), select the space and press Enter
        1. Supplement: Progressive Web App (PWA)Support Progressive Web application supports
          TypeScript js advanced syntax Linter code checking tool Unit E2E unit testing tool
        2. Choose vue2 or 3
      2. Select the routing mode. The default his mode is whether to use his or not. The default is no. Enter
      3. Select css select processor sass/scss (with node-sass) press enter
      4. What to use to store the configuration file, usually I choose json and press Enter
      5. Whether to save this configuration, if yes, then enter the name of this configuration
      6. Just wait for the build to run

Guess you like

Origin blog.csdn.net/weixin_45113182/article/details/128725341