Nuxt postinstall (nuxt prepare cmd) / nuxt build hangs forever
On an app I have in production, I suddently started being completely unable to install properly packages for my app / run build.
The issue seem to be at the "nuxt prepare" step, because the issue happen when I run "nuxi prepare" as standalone.
When I run the command, The type generation seem to be happening as it should, but then the command hangs forever, I've tried just let it run until it throws something, but it never happens.
I thought this could have been related to the modules I use, so I just disabled all modules my app uses, even tried commenting the whole nuxt.config.ts content, but the exact same issue keeps happening.
I've also tried multiple package managers, bun, pnpm, yarn, npm, issue always reproduces.
Has someone already experienced this kind of issue, and know where I should be looking at. I've been fighting with this issue for quite a while, and I really didn't progress much.
Also, do someone know if there's a way to have "verbose" logs of the steps the "nuxi prepare" command is running, to get maybe an insight on what's blocking here ? Didn't find any option to achieve this yet.
4 Replies
I tried to run this :
But I didn't get any extra log
Only similar issue reference I've find so far is this :
https://github.com/nuxt/cli/issues/169
Which also points me to a module being the problem
GitHub
nuxi
prepare
or build
hangs · Issue #169 · nuxt/cliEnvironment Operating System: Darwin Node Version: v20.5.1 Nuxt Version: 3.7.0 CLI Version: 3.7.0 Nitro Version: 2.6.1 Package Manager: [email protected] Builder: - User Config: experimental, css, ssr, nit...
My project infos
@ChronicStone hey I know this is a bit old, but if you disable @unocss/nuxt module, does it fix your builds?