chore: 指定最大vue3版本

This commit is contained in:
TsMask
2024-01-02 10:29:15 +08:00
parent 8f968839fa
commit ac280a6825
2 changed files with 15 additions and 4 deletions

View File

@@ -43,6 +43,17 @@ Local http://localhost:6269 # 启动成功后得到服务访问地址
# 检查配置参数 .env.development
npm install # 安装项目所需依赖
npm run build # 构建生产项目代码
```
#### 打包问题
遇到 `[vite build error: out of memory](https://github.com/vitejs/vite/issues/2433)` 问题,设置环境变量改变 node 的缓存空间
```sh
export NODE_OPTIONS=--max-old-space-size=32768
export NODE_OPTIONS=--max-old-space-size=50000
```
## k8s

View File

@@ -29,7 +29,7 @@
"js-cookie": "^3.0.5",
"nprogress": "^0.2.0",
"pinia": "^2.1.7",
"vue": "^3.3.13",
"vue": "~3.3.13",
"vue-codemirror": "^6.1.1",
"vue-i18n": "^9.8.0",
"vue-router": "^4.2.5",