Skip to content

[Bug?]: Very slow Link step on 4.9.0 when nodeLinker: pnpm #6758

@tienipia

Description

@tienipia

Self-service

  • I'd be willing to implement a fix

Describe the bug

After upgrading from Yarn 4.8.1 to Yarn 4.9.0 in an environment where nodeLinker is set to pnpm only, running yarn install stalls for an extended period during the Link step. Below is the console output for reference:

.yarnrc.yml

nodeLinker: pnpm

yarn install output

➤ YN0000: · Yarn 4.9.0
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Post-resolution validation
➤ YN0060: │ ical.js is listed by your project with version 2.1.0 (pda334), which doesn't satisfy what @fullcalendar/icalendar requests (^1.4.0).
➤ YN0060: │ vite is listed by your project with version 6.2.5 (p3789c), which doesn't satisfy what vite-plugin-vue-layouts and other dependencies request (^5.0.0).
➤ YN0002: │ saeroun-helpdesk-web@workspace:. doesn't provide @schedule-x/date-picker (p9f559), requested by @schedule-x/vue.
➤ YN0086: │ Some peer dependencies are incorrectly met by your project; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code.
➤ YN0086: │ Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 1s 499ms
➤ YN0000: ┌ Link step
➤ YN0007: │ ttf2woff2@npm:5.0.0 must be built because it never has been before or the last one failed
➤ YN0007: │ core-js-pure@npm:3.38.1 must be built because it never has been before or the last one failed
➤ YN0007: │ @parcel/watcher@npm:2.5.1 must be built because it never has been before or the last one failed
➤ YN0007: │ vue-demi@npm:0.14.10 [02956] must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.25.0 must be built because it never has been before or the last one failed
➤ YN0007: │ esbuild@npm:0.21.5 must be built because it never has been before or the last one failed
➤ YN0000: └ Completed in 3m 15s
➤ YN0000: · Done with warnings in 3m 17s

same yarn install with 4.8.1

➤ YN0000: · Yarn 4.8.1
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed in 0s 239ms
➤ YN0000: ┌ Post-resolution validation
➤ YN0060: │ @schedule-x/calendar is listed by your project with version 2.27.2 (p8d391), which doesn't satisfy what @schedule-x/vue requests (2.27.0).
➤ YN0060: │ ical.js is listed by your project with version 2.1.0 (pda334), which doesn't satisfy what @fullcalendar/icalendar requests (^1.4.0).
➤ YN0060: │ vite is listed by your project with version 6.2.5 (p3789c), which doesn't satisfy what vite-plugin-vue-layouts and other dependencies request (^5.0.0).
➤ YN0002: │ saeroun-helpdesk-web@workspace:. doesn't provide @schedule-x/date-picker (p9f559), requested by @schedule-x/vue.
➤ YN0086: │ Some peer dependencies are incorrectly met by your project; run yarn explain peer-requirements <hash> for details, where <hash> is the six-letter p-prefixed code.
➤ YN0086: │ Some peer dependencies are incorrectly met by dependencies; run yarn explain peer-requirements for details.
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 1s 512ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 5s 325ms
➤ YN0000: · Done with warnings in 7s 153ms

To reproduce

simply run

yarn set version stable
yarn install

removing node_modules to make clean doesn't resolve issue.

Environment

System:
  OS: Linux 6.13 Fedora Linux 41 (Workstation Edition)
  CPU: (6) x64 AMD Ryzen 5 3500X 6-Core Processor
Binaries:
  Node: 22.14.0 - /tmp/xfs-e749689b/node
  Yarn: 4.8.1 - /tmp/xfs-e749689b/yarn
  npm: 10.9.2 - /usr/bin/npm

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions