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

Support --no-bin-links #459

Closed
zkochan opened this issue Nov 3, 2016 · 6 comments
Closed

Support --no-bin-links #459

zkochan opened this issue Nov 3, 2016 · 6 comments

Comments

@zkochan
Copy link
Member

zkochan commented Nov 3, 2016

The --no-bin-links argument will prevent npm from creating symlinks for any binaries the package might contain.

@zkochan
Copy link
Member Author

zkochan commented Oct 29, 2017

This might be not needed as this flag exists in npm only because some systems don't support symlinks/junctions. However, pnpm would not work on those anyway.

@zkochan zkochan removed this from the v2.0.0 milestone Mar 29, 2018
@aparajita
Copy link
Contributor

@zkochan I'm closing this, as you say it is not relevant to any system that supports symlinks. And I honestly can't think of a use case where I would not want bin links to be installed.

@zkochan
Copy link
Member Author

zkochan commented Aug 5, 2020

Honestly, I think bin files are only needed if the dependent package has lifecycle events. So the bin files of direct dependencies are always needed. But the bin files of subdependencies are only needed if the dependent package has a postinstall script (or another script that is executed during installation).

@skarab42
Copy link

And I honestly can't think of a use case where I would not want bin links to be installed.

@aparajita I think this feature can be useful when using aliases. As aliases don't handle this case and always resolve bin to the package with the smallest version number.

@esaounkine
Copy link

Sorry for reviving an old conversation, and maybe I'm missing some other existing functionality - but it would be nice to support for AWS Lambda packaging.

In my case I'd like to stick to pnpm for all builds, with the exception that in the case of sam build I'd like the actual package files, rather than symlinks, to be copied to the output .aws-sam directory.

@jlost
Copy link

jlost commented Jun 8, 2024

Cannot run in my CIFS-mounted directory without --no-bin-links.

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

No branches or pull requests

5 participants