文章目录
一、使用vite构建vue项目
构建命令
npm init vite@latest
Need to install the following packages:
create-vite@latest
Ok to proceed? (y) y
√ Project name: ... vite-project
√ Select a framework: » Vue
√ Select a variant: » TypeScript
进入项目目录执行npm install 根据package.json安装好依赖包
npm install
执行 npm run dev 运行项目ok
二、通过vue脚手架构建vue项目
npm init vue@latest