Skip to content

Error while trying to symlink #11403

@ghost

Description

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

v11.0.1

Which area(s) of pnpm are affected? (leave empty if unsure)

Operating System (Windows, MacOS, Linux)

Link to the code that reproduces this issue or a replay of the bug

pnpm add -g @eslint/migrate-config@2.0.6 "@google/gemini-cli@0.38.2" @nestjs/cli@11.0.21 @raycast/api@1.104.12 @sanity/cli@6.3.2 @vscode/vsce@3.9.1 create-next-app@16.2.4 depcheck eas-cli@18.7.0 heroui-cli@3.0.0 mcp-remote nextmap npm-check-updates@21.0.2 portless@0.10.3 ripencli@1.0.1 sanity@5.21.0 turbo@2.9.6 vercel-seo-audit yarn

Reproduction steps

Just run the command. I am using Command Prompt to run it.

pnpm add -g @eslint/migrate-config@2.0.6 "@google/gemini-cli@0.38.2" @nestjs/cli@11.0.21 @raycast/api@1.104.12 @sanity/cli@6.3.2 @vscode/vsce@3.9.1 create-next-app@16.2.4 depcheck eas-cli@18.7.0 heroui-cli@3.0.0 mcp-remote nextmap npm-check-updates@21.0.2 portless@0.10.3 ripencli@1.0.1 sanity@5.21.0 turbo@2.9.6 vercel-seo-audit yarn

This command is for my global packages and constructed it using AI to upgrade to pnpm v11.

Describe the Bug

C:\Users\yusif>pnpm add -g @eslint/migrate-config@2.0.6 "@google/gemini-cli@0.38.2" @nestjs/cli@11.0.21 @raycast/api@1.104.12 @sanity/cli@6.3.2 @vscode/vsce@3.9.1 create-next-app@16.2.4 depcheck eas-cli@18.7.0 heroui-cli@3.0.0 mcp-remote nextmap npm-check-updates@21.0.2 portless@0.10.3 ripencli@1.0.1 sanity@5.21.0 turbo@2.9.6 vercel-seo-audit yarn
Downloading @google/gemini-cli@0.38.2: 22.94 MB/22.94 MB, done
 WARN  Tarball download average speed 12 KiB/s (size 15 KiB) is below 50 KiB/s: https://registry.npmjs.org/open/-/open-11.0.0.tgz (GET)
Downloading @raycast/api@1.104.12: 6.88 MB/6.88 MB, done
 WARN  The metadata of @sanity/schema is missing the "time" field; skipping the minimumReleaseAge check for this package.
Downloading node-pty@1.1.0: 15.46 MB/15.46 MB, done
 WARN  The metadata of @babel/core is missing the "time" field; skipping the minimumReleaseAge check for this package.
 WARN  The metadata of @babel/runtime is missing the "time" field; skipping the minimumReleaseAge check for this package.
Downloading @turbo/windows-64@2.9.6: 15.21 MB/15.21 MB, done
 WARN  The metadata of @babel/helper-create-class-features-plugin is missing the "time" field; skipping the minimumReleaseAge check for this package.
 WARN  2 other warnings
 WARN  14 deprecated subdependencies found: @xmldom/xmldom@0.7.13, glob@10.5.0, glob@11.1.0, glob@6.0.4, inflight@1.0.6, lodash.get@4.4.2, prebuild-install@7.1.3, rimraf@2.4.5, tar@7.5.7, uuid@10.0.0, uuid@7.0.3, uuid@8.3.2, uuid@9.0.1, whatwg-encoding@3.1.1
Packages: +1604
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Downloading hls.js@1.6.16: 5.87 MB/5.87 MB, done
Progress: resolved 1670, reused 1, downloaded 1602, added 1603, done
 WARN  Issues with peer dependencies found. Run "pnpm peers check" to list them.

global:
+ @eslint/migrate-config 2.0.6
+ @google/gemini-cli 0.38.2 (0.40.0 is available)
+ @nestjs/cli 11.0.21
+ @raycast/api 1.104.12 (1.104.15 is available)
+ @sanity/cli 6.3.2 (6.4.0 is available)
+ @vscode/vsce 3.9.1
+ create-next-app 16.2.4
+ depcheck 1.4.7
+ eas-cli 18.7.0 (18.9.1 is available)
+ heroui-cli 3.0.0
+ mcp-remote 0.1.38
+ nextmap 1.0.1
+ npm-check-updates 21.0.2 (22.0.1 is available)
+ portless 0.10.3 (0.12.0 is available)
+ ripencli 1.0.1
+ sanity 5.21.0 (5.23.0 is available)
+ turbo 2.9.6
+ vercel-seo-audit 2.5.0
+ yarn 1.22.22
√ Choose which packages to build (Press <space> to select, <a> to toggle all, <i> to invert selection) · @vscode/vsce-sign, esbuild, yarn
√ The next packages will now be built: @vscode/vsce-sign, esbuild, yarn.
Do you approve? (y/N) · true

 ENOENT  Error while trying to symlink "C:\Users\yusif\AppData\Local\pnpm\store\v11\links\@babel\parser\7.29.2\4d2f97218e3648a5e7326265f968e21c26f4f4559f8121516bae67dfacd96a71\node_modules\@babel\parser" to "C:\Users\yusif\AppData\Local\pnpm\global\v11\5894-19ddd0f1ac2\C:\Users\yusif\AppData\Local\pnpm\global\v11\5894-19ddd0f1ac2\node_modules\.pnpm\node_modules\@babel\parser". The error happened while trying to create the parent directory for the symlink target. Details: Error: ENOENT: no such file or directory, mkdir 'C:\Users\yusif\AppData\Local\pnpm\global\v11\5894-19ddd0f1ac2\C:\Users\yusif\AppData\Local\pnpm\global\v11\5894-19ddd0f1ac2\node_modules\.pnpm\node_modules\@babel'

pnpm: Error while trying to symlink "C:\Users\yusif\AppData\Local\pnpm\store\v11\links\@babel\parser\7.29.2\4d2f97218e3648a5e7326265f968e21c26f4f4559f8121516bae67dfacd96a71\node_modules\@babel\parser" to "C:\Users\yusif\AppData\Local\pnpm\global\v11\5894-19ddd0f1ac2\C:\Users\yusif\AppData\Local\pnpm\global\v11\5894-19ddd0f1ac2\node_modules\.pnpm\node_modules\@babel\parser". The error happened while trying to create the parent directory for the symlink target. Details: Error: ENOENT: no such file or directory, mkdir 'C:\Users\yusif\AppData\Local\pnpm\global\v11\5894-19ddd0f1ac2\C:\Users\yusif\AppData\Local\pnpm\global\v11\5894-19ddd0f1ac2\node_modules\.pnpm\node_modules\@babel'
    at async Object.mkdir (node:internal/fs/promises:1501:10)
    at async forceSymlink (file:///C:/Users/yusif/AppData/Local/pnpm/store/v11/links/@pnpm/exe/11.0.1/1d73b500024f1810fe5b2050b3e8f885fa79f12fd93bea7541bfd805d2f5acbf/node_modules/@pnpm/exe/dist/pnpm.mjs:76100:11)
    at async symlinkHoistedDependency (file:///C:/Users/yusif/AppData/Local/pnpm/store/v11/links/@pnpm/exe/11.0.1/1d73b500024f1810fe5b2050b3e8f885fa79f12fd93bea7541bfd805d2f5acbf/node_modules/@pnpm/exe/dist/pnpm.mjs:148578:5)
    at async Promise.all (index 0)
    at async file:///C:/Users/yusif/AppData/Local/pnpm/store/v11/links/@pnpm/exe/11.0.1/1d73b500024f1810fe5b2050b3e8f885fa79f12fd93bea7541bfd805d2f5acbf/node_modules/@pnpm/exe/dist/pnpm.mjs:148567:7
    at async Promise.all (index 0)
    at async symlinkHoistedDependencies (file:///C:/Users/yusif/AppData/Local/pnpm/store/v11/links/@pnpm/exe/11.0.1/1d73b500024f1810fe5b2050b3e8f885fa79f12fd93bea7541bfd805d2f5acbf/node_modules/@pnpm/exe/dist/pnpm.mjs:148574:3)
    at async hoist (file:///C:/Users/yusif/AppData/Local/pnpm/store/v11/links/@pnpm/exe/11.0.1/1d73b500024f1810fe5b2050b3e8f885fa79f12fd93bea7541bfd805d2f5acbf/node_modules/@pnpm/exe/dist/pnpm.mjs:148418:3)
    at async headlessInstall (file:///C:/Users/yusif/AppData/Local/pnpm/store/v11/links/@pnpm/exe/11.0.1/1d73b500024f1810fe5b2050b3e8f885fa79f12fd93bea7541bfd805d2f5acbf/node_modules/@pnpm/exe/dist/pnpm.mjs:154175:12)
    at async tryFrozenInstall (file:///C:/Users/yusif/AppData/Local/pnpm/store/v11/links/@pnpm/exe/11.0.1/1d73b500024f1810fe5b2050b3e8f885fa79f12fd93bea7541bfd805d2f5acbf/node_modules/@pnpm/exe/dist/pnpm.mjs:156955:56)

Expected Behavior

Symlinks must work as expected

Which Node.js version are you using?

v24.4.1

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions