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

Does not symlink a binary for pnpm #1554

Open
shirakaba opened this issue Sep 29, 2023 · 1 comment
Open

Does not symlink a binary for pnpm #1554

shirakaba opened this issue Sep 29, 2023 · 1 comment

Comments

@shirakaba
Copy link

shirakaba commented Sep 29, 2023

Using Volta through zsh on macOS Ventura 13.5.2, on an M1 Mac.

VOLTA_FEATURE_PNPM=1
volta install pnpm
# Or alternatively `node install -g pnpm`

Whether I used volta install pnpm or node install -g pnpm, each time, the command said that it successfully installed pnpm, but I found that although it did populate the following directories:

tools/inventory/pnpm
tools/image/pnpm

... it neglected to create a binary file inside ~/.volta/bin. Thus, when trying to use pnpm, I'd receive the message "zsh: command not found: pnpm".

As a workaround, I manually created the symlink:

cd /Users/jamie/.volta/bin
ln -sfn /Users/jamie/.volta/bin/volta-shim pnpm

This allowed me to use the pnpm command in my shell. After having used pnpm, I found that bin/inventory/pnpm had become populated for me, so I think the workaround succeeded.

Related:

@chawyehsu
Copy link
Contributor

I think this is related to the known issue that Volta does not automatically create shim, similar to #1473. Native shim will be used for pnpm when VOLTA_FEATURE_PNPM is activated. To address this issue, perhaps volta-shim auto duplication could be added to Volta.

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