分类标签归档:frontend

[ vue3项目搭建 ]


vue3项目搭基础结构

node v20.8.1

安装

  1. 安装cnpm
 npm install -g cnpm --registry=https://registry.npmmirror.com
 ```

2. 使用vite脚手架创建vue项目

cnpm create vite@latest my-vue-app --template vue

3. 启动项目

918 cd my-vue-app/ 920 cnpm install 950 npm run dev

4. 安装依赖(less, router, element-plus自动导入/图标)

cnpm ins

< Read more >