創建項目所需環境大前提:https://www.cnblogs.com/Fancy1486450630/p/15629160.html
1、新建一個文件夾。【存放路徑】
2、Ctrl+A選中路徑,輸入cmd。
3、打開之后,輸入vue create my-project。【my-project可以任意定義,這里作者用的vue3_study】
Please pick a preset - 選擇 Manually select features
Check the features needed for your project - 選擇上 TypeScript ,特別注意點空格是選擇,點回車是下一步
Choose a version of Vue.js that you want to start the project with - 選擇 3.x (Preview)
Use class-style component syntax - 直接回車
Use Babel alongside TypeScript - 直接回車
Pick a linter / formatter config - 直接回車
Use history mode for router? - 直接回車
Pick a linter / formatter config - 直接回車
Pick additional lint features - 直接回車
Where do you prefer placing config for Babel, ESLint, etc.? - 直接回車
Save this as a preset for future projects? - 直接回車
4、安裝成功。
5、查看所下載文件。
6、按要求進行啟動,分別輸入命令“cd vue3_study”和“npm run serve”啟動完成。
7、界面如下。
原文鏈接:https://blog.csdn.net/ling08140814/article/details/117265774