Commit eeaf782
committed
fix(test): fix hanging nuxt-5 e2e test
1. `dev-packages/e2e-tests/test-applications/nuxt-5/package.json` pins
`"nuxt": "npm:nuxt-nightly@5.x"`, an aliased dependency.
2. `nuxt-nightly@5.0.0-...` depends on `"@nuxt/nitro-server":
"npm:@nuxt/nitro-server-nightly@<exact same version>"`.
3. `@nuxt/nitro-server-nightly` declares `"peerDependencies": { "nuxt":
"npm:nuxt-nightly@<exact same version>" }`. This is a
self-referencing aliased peer dep that loops back to the top-level
dependency being installed.
4. pnpm's peer-dependency resolver deadlocks on this cycle: process goes
to 0% CPU, no open sockets, threads parked in kevent/uv_cond_wait.
Resolution shows `resolved 498, reused 0, downloaded 417, added 0`,
then hangs forever.
The solution is to use npm to install the dependencies, since npm does
not deadlock on this sort of peerDep alias cycle.1 parent ed0c4cf commit eeaf782
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
| 16 | + | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments