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

pnpm install -g not supported #15

Closed
danielfalk opened this issue Jan 22, 2023 · 2 comments
Closed

pnpm install -g not supported #15

danielfalk opened this issue Jan 22, 2023 · 2 comments

Comments

@danielfalk
Copy link

To Reproduce

  1. Run asdf plugin install pnpm
  2. Running pnpm install -g <any global package> gives the following error:
ERROR  Unable to find the global bin directory
Run "pnpm setup" to create it automatically, or set the global-bin-dir setting, or the PNPM_HOME env variable. The global bin directory should be in the PATH.

I think it's related to this issue, which is that unlike npm, pnpm doesn't try to autodetect where to put the global installations.

And while you could configure it by running pnpm setup, then it would configure all asdf's pnpm installations to use the same directory, regardless of what version of pnpm you're using, which seems counter to asdf's purpose of allowing multiple versions being installed.

@jonathanmorley
Copy link
Owner

I'll defer this issue to see what approach pnpm takes upstream

@vanyauhalin
Copy link

@jonathanmorley, hi. Do you've any news on this issue?

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

3 participants