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

Missing node_modules/.bin with hoisted linker #6486

Closed
TrySound opened this issue Apr 29, 2023 · 5 comments · Fixed by #6488
Closed

Missing node_modules/.bin with hoisted linker #6486

TrySound opened this issue Apr 29, 2023 · 5 comments · Fixed by #6488
Assignees

Comments

@TrySound
Copy link

TrySound commented Apr 29, 2023

pnpm version: 8.3.0

Code to reproduce the issue:

https://github.com/TrySound/pnpm-hoisted-bin-bug

Expected behavior:

Single pnpm install creates node_modules/.bin

Actual behavior:

There is an issue with hoisted linker.

With clean node_modules and after first pnpm install node_modules/.bin in packages are not created. So when run pnpm build there is an error about missing command.

After running pnpm install the second time node_modules/.bin are created and pnpm build in packages start to work.

Additional information:

  • node -v prints: v16.17.1
  • Windows, macOS, or Linux?: Mac OS Ventura
@zkochan
Copy link
Member

zkochan commented Apr 29, 2023

Maybe this is related to this issue: #1801

@TrySound
Copy link
Author

Maybe, though reproducible without postinstall and with committed target

@TrySound
Copy link
Author

Another interesting point, the issue is not reproducible with default linker

@zkochan zkochan self-assigned this Apr 29, 2023
@zkochan
Copy link
Member

zkochan commented Apr 29, 2023

I'll fix it.

@TrySound
Copy link
Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants