cd admin-frontend
npm install
或使用国内镜像(如果下载慢):
npm install --registry=https://registry.npmmirror.com
npm run dev
启动成功后,在浏览器中访问:
http://localhost:3000
npm run build
构建后的文件会在 dist 目录中。
npm run preview
解决方案:
npm install --registry=https://registry.npmmirror.comyarn install解决方案:
vite.config.js 中的 server.port 为其他端口解决方案:
vite.config.js 中的代理配置