Skip to content

Conversation

btea
Copy link
Member

@btea btea commented Aug 22, 2025

When executing the script through the postinstall hook in a Linux environment, the value of opts.unsafePerm passed in is false, so the value of the environment variable TMPDIR is set to the current directory, causing os.tmpdir() to return a directory other than the temporary directory.

fix pnpm/pnpm#9718

@btea btea requested a review from zkochan August 22, 2025 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

node-compile-cache appears in the root directory
1 participant