Skip to content

node-compile-cache appears in the root directory #9718

@thinkasany

Description

@thinkasany

Verify latest release

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

pnpm version

10.12.4

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

No response

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

No response

Reproduction steps

  1. nvm use 22
  2. pnpm install

Describe the Bug

I have tried the following and the current problem does not occur:

  1. node 20.15.0, pnpm 10.12.3
  2. node 22.17.0, npm 10.9.2

Similar issue #7330 (comment)

But when I use node 22.17.0, pnpm 10.12.4, a node-compile-cache file will be generated. Too many changes have an impact. My operating system is wsl. I don’t know if it is caused by the compatibility problem of my operating system. Although adding gitinore rules can solve this problem, most upstream open source repositories may not adopt it because macos may not have such a problem. I hope to get your help. Thank you.

Image

Expected Behavior

I hope the cached files are in nodemodules, so I don't need to manually add rules to ignore them.

Which Node.js version are you using?

22.17.0

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)

Ubuntu22.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions