# admin-vite **Repository Path**: burry/admin-vite ## Basic Information - **Project Name**: admin-vite - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2025-08-04 - **Last Updated**: 2025-11-24 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Vite + Vue3 + Ant Design Vue 项目文档 ## 📦 技术栈 - **构建工具**: Vite - **前端框架**: Vue - **UI组件库**: Ant Design Vue - **包管理**: PNPM - **语言**: Javascript ## 🚀 快速开始 ### 环境准备 ```bash # node版本 node -v 20+ # pnpm版本 pnpm -v 10+ 本项目使用 pnpm 请勿使用 npm 或 yarn # 安装pnpm (如未安装) npm install -g pnpm # 安装依赖 pnpm i # 启动项目 pnpm run dev ``` ### 自动导入配置指南 #### 📦 安装必要依赖 ```bash pnpm add -D unplugin-vue-components unplugin-auto-import @ant-design/icons-vue ``` ## 解决 Vite 项目中 Node.js 编码未启用问题 ### 🔍 问题现象 在 `vite.config.ts` 中使用 `path` 模块时出现以下错误: ```text Error: Module "path" is not enabled in Node.js environment ``` ## 💻 解决方案 ### 1. 安装必要的依赖 ```bash pnpm add -D @types/node ```