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

volta seems to not handle cli's on npm link correctly #657

Closed
serapath opened this issue Feb 5, 2020 · 3 comments
Closed

volta seems to not handle cli's on npm link correctly #657

serapath opened this issue Feb 5, 2020 · 3 comments

Comments

@serapath
Copy link

serapath commented Feb 5, 2020

  1. I npm link and volta put's /home/<username>/.volta/bin into my $PATH,
  2. but the cli is moved into /home/<username>/.volta/ .... .... .... /bin/<cmd>
  3. so I assume volta is not adding and updating a symlink
    • e.g. /home/<username>/.volta/bin -> /home/<username>/.volta/ .... .... .... /bin
    • where ... ... ... depends on the current node -v and npm - v
    • and would be, e.g. /tools/image/node/12.14.1/6.13.4 🙂

cli

@serapath
Copy link
Author

serapath commented Feb 5, 2020

alternatively, volta should add and maintain the current node -v and npm -v dependent .../bin paths to my $PATH

@charlespierce
Copy link
Contributor

@serapath There's a couple issues to unpack here. First and foremost is that we don't have a good story for npm link / yarn link in general (see #56).

That said, I also think this is a new use-case for npm link that we weren't aware of. I think that will also need to be part of the overall story for supporting npm link, where we either generate a short-term shim or in some other way make a tool that has been linked available to you. We don't modify the terminal's PATH and our approach with volta install is to avoid having things depend on the Node version that you are currently using, so that you don't have to keep re-installing the same tools every time you change Node versions, so it's unfortunately not a simple solution.

@dieeisenefaust
Copy link

Same issue here. Had to move back to nvm to be able to be able to troubleshoot an issue with another package's cli.

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

4 participants