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

mkshims assumes Node is globally installed #486

Open
rdicroce opened this issue May 29, 2024 · 1 comment
Open

mkshims assumes Node is globally installed #486

rdicroce opened this issue May 29, 2024 · 1 comment

Comments

@rdicroce
Copy link

The shebang line in the shims created by mkshims is #!/usr/bin/env node. This is broken in at least two ways:

  • If some version of node is globally installed (i.e. on PATH), the shim will execute using that node, even if it's not the same node that's in the same directory as the shim.
  • If no version of node is globally installed, the shim just fails entirely.
@aduh95
Copy link
Contributor

aduh95 commented May 29, 2024

I think you can configure your environment to point to the "correct" node executable; AFAIK it's not something that can be "fixed" from Corepack end.

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

No branches or pull requests

2 participants