Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

post-install script hangs when using pnpm in a project with * as package descriptor #772

Open
gonzalob opened this issue Oct 2, 2024 · 1 comment · May be fixed by #778
Open

post-install script hangs when using pnpm in a project with * as package descriptor #772

gonzalob opened this issue Oct 2, 2024 · 1 comment · May be fixed by #778

Comments

@gonzalob
Copy link

gonzalob commented Oct 2, 2024

When using '*' as package definition for a pnpm workspace, the post-install script hangs until it triggers an OOM.
Looks like it's spawning infinite shells to build itself recursively.

To reproduce:

  • clone the sample repository
  • prune your local pnpm store (pnpm store prune)
  • install dependencies using pnpm (pnpm install)
@tripheo0412
Copy link

Want to shed some light on this matter, I think this is a pnpm issue.

A work around is to somehow ignore the postinstall script and manually run it. In my case, I have to fork the repo, rename the postinstall script to "postinstall-custom". Then after pnpm install, I will go directly to the postman-code-generators and run pnpm postinstall-custom

My setup:

  • pnpm v9
  • monorepo using turborepo

@ckaznocha ckaznocha linked a pull request Nov 26, 2024 that will close this issue
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 a pull request may close this issue.

2 participants