1. Use the latest version of Node. If not, download it from the official website
Node. Js’s official website
2. Upgrade to vue3.0: NPM i-g@vue /cli
3, create the project folder, enter the command: vue create vue-project
- Default (Babel, ESLint) The default package, which provides Babel and ESLint support
- Manually select features to Manually select the desired function
- You can use the up and down arrow keys to switch options
4. Select configuration
5. Confirm the selected configuration
6. Select CSS preprocessing
7. Select the TSLint or ESLint rule, depending on personal preference or company policy
8, select the syntax check mode, here I choose to save detection
9. Choose the unit test solution
10, where to put configuration files like Babel, postCSS, esLint, etc., so I chose to put them in a separate folder
11, whether to save the configuration,N does not record,Y record and enter the save name
12. After confirming, wait for downloading dependency. After downloading, prompt operation will be performed
13. Enter NPM run serve to start the project
The project works, and that’s about it
-
Remarks: If you have any questions, please correct them
-
This article is originally published. If reprinted, please indicate the source:Vue3.0 +typescript project creation