Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: 执行pnpm build时报错 #5382

Closed
5 tasks done
lastmetor opened this issue Jan 14, 2025 · 3 comments
Closed
5 tasks done

Bug: 执行pnpm build时报错 #5382

lastmetor opened this issue Jan 14, 2025 · 3 comments

Comments

@lastmetor
Copy link

Version

Vben Admin V5

Describe the bug?

直接clone的源码,安装依赖无异常,运行无异常,执行pnpm build时报错

Reproduction

https://github.com/vbenjs/vue-vben-admin

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700F
    Memory: 7.61 GB / 15.84 GB
Binaries:
    Node: 20.18.0 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.15.3 - C:\Program Files\nodejs\pnpm.CMD
Browsers:
    Edge: Chromium (131.0.2903.63)
    Internet Explorer: 11.0.22621.3527

Relevant log output

PS D:\vben-admin5\vue-vben-admin>
PS D:\vben-admin5\vue-vben-admin>
PS D:\vben-admin5\vue-vben-admin> pnpm build

> [email protected] build D:\vben-admin5\vue-vben-admin
> cross-env NODE_OPTIONS=--max-old-space-size=16384 turbo build

 ELIFECYCLE  Command failed with exit code 3221225781.

Validations

@lastmetor
Copy link
Author

完整流程
D:\ex-vben5-mld\vben-admin5\vue-vben-admin>pnpm install
Scope: all 43 workspace projects
Lockfile is up to date, resolution step is skipped
Packages: +1872
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Progress: resolved 1872, reused 1865, downloaded 0, added 1872, done

devDependencies:

  • @changesets/changelog-github 0.5.0
  • @changesets/cli 2.27.11
  • @playwright/test 1.49.1
  • @types/node 22.10.5
  • @vben/commitlint-config 5.5.2 <- internal\lint-configs\commitlint-config
  • @vben/eslint-config 5.0.0 <- internal\lint-configs\eslint-config
  • @vben/prettier-config 5.0.0 <- internal\lint-configs\prettier-config
  • @vben/stylelint-config 5.5.2 <- internal\lint-configs\stylelint-config
  • @vben/tailwind-config 5.5.2 <- internal\tailwind-config
  • @vben/tsconfig 5.5.2 <- internal\tsconfig
  • @vben/turbo-run 5.5.2 <- scripts\turbo-run
  • @vben/vite-config 5.5.2 <- internal\vite-config
  • @vben/vsh 5.5.2 <- scripts\vsh
  • @vitejs/plugin-vue 5.2.1
  • @vitejs/plugin-vue-jsx 4.1.1
  • @vue/test-utils 2.4.6
  • autoprefixer 10.4.20
  • cross-env 7.0.3
  • cspell 8.17.1
  • happy-dom 16.5.3
  • husky 9.1.7
  • is-ci 4.1.0
  • lint-staged 15.3.0
  • playwright 1.49.1
  • rimraf 6.0.1
  • tailwindcss 3.4.17
  • turbo 2.3.3
  • typescript 5.7.3
  • unbuild 3.2.0
  • vite 6.0.7
  • vitest 2.1.8
  • vue 3.5.13
  • vue-tsc 2.1.10

. postinstall$ pnpm -r run stub --if-present
[27 lines collapsed]
│ scripts/vsh stub$ pnpm unbuild --stub "--if-present"
│ scripts/turbo-run stub: i Stubbing turbo-run
│ scripts/turbo-run stub: i Cleaning dist directory: ./dist
│ scripts/vsh stub: i Stubbing vsh
│ internal/vite-config stub: i Stubbing vite-config
│ scripts/vsh stub: i Cleaning dist directory: ./dist
│ internal/vite-config stub: i Cleaning dist directory: ./dist
│ scripts/turbo-run stub: Done
│ scripts/vsh stub: Done
│ internal/vite-config stub: Done └─ Done in 4.9s
. prepare$ is-ci || husky
└─ Done in 406ms
Done in 15.6s

D:\ex-vben5-mld\vben-admin5\vue-vben-admin>pnpm dev

[email protected] dev D:\ex-vben5-mld\vben-admin5\vue-vben-admin
turbo-run dev

|
o Select the app you need to run [dev]:
| @vben/web-antd

@vben/[email protected] dev D:\ex-vben5-mld\vben-admin5\vue-vben-admin\apps\web-antd
pnpm vite --mode development

                                                                                                          11:17:32

VITE v6.0.7 ready in 2789 ms

➜ Local: http://localhost:5666/ 11:17:32
➜ Network: http://192.168.44.111:5666/ 11:17:32
➜ Vben Admin Docs: https://doc.vben.pro 11:17:32
➜ Nitro Mock Server: http://localhost:5320/api 11:17:32
➜ press h + enter to show help 11:17:32
11:17:34
√ Nitro Mock Server started. 11:17:34
√ Nitro Server built in 7508 ms nitro 11:17:41
终止批处理操作吗(Y/N)? y

D:\ex-vben5-mld\vben-admin5\vue-vben-admin>pnpm build

[email protected] build D:\ex-vben5-mld\vben-admin5\vue-vben-admin
cross-env NODE_OPTIONS=--max-old-space-size=8192 turbo build

 ELIFECYCLE  Command failed with exit code 3221225781.

D:\ex-vben5-mld\vben-admin5\vue-vben-admin>

@mynetfan
Copy link
Collaborator

尝试删除所有pnpm缓存后重新安装依赖

@mynetfan
Copy link
Collaborator

过期没有回应。如有问题请重新打开Issue

@github-actions github-actions bot locked and limited conversation to collaborators Feb 1, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants