2024-05-23 12:50:16
30阅读
安装最新版本的 Node.js
npm create vue@latest
配置可选的功能
- 接着是TypeScript 和测试支持之类的可选功能提示:
? Project name: … <your-project-name>
? Add TypeScript? … No / Yes
? Add JSX Support? … No / Yes
? Add Vue Router for Single Page Application development? … No / Yes
? Add Pinia for state management? … No / Yes
? Add Vitest for Unit testing? … No / Yes
? Add an End-to-End Testing Solution? … No / Cypress / Nightwatch / Playwright
? Add ESLint for code quality? … No / Yes
? Add Prettier for code formatting? … No / Yes
? Add Vue DevTools 7 extension for debugging? (experimental) … No / Yes
Scaffolding project in ./<your-project-name>...
Done.
- 如果不确定是否要开启某个功能,可以直接按下回车键选择 No。在项目被创建后,通过以下步骤安装依赖并启动开发服务器:
cd <your-project-name>
npm install
npm run dev
npm run build
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
最后生成于
2024-06-22 12:07:47
热门推荐:
此内容有帮助 ?
0