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
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
Choose the first or second one, you don’t need to do anything later, just wait for the generation
If you choose manually customize
I generally choose babel (es6 to es5 tool), route (routing), vuex (state management), css (css preprocessing), select the space and press Enter
Supplement: Progressive Web App (PWA)Support Progressive Web application supports TypeScript js advanced syntax Linter code checking tool Unit E2E unit testing tool
Choose vue2 or 3
Select the routing mode. The default his mode is whether to use his or not. The default is no. Enter
Select css select processor sass/scss (with node-sass) press enter
What to use to store the configuration file, usually I choose json and press Enter
Whether to save this configuration, if yes, then enter the name of this configuration