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

I cannot update version #8104

Closed
1 of 4 tasks
chlbri opened this issue May 20, 2024 · 3 comments
Closed
1 of 4 tasks

I cannot update version #8104

chlbri opened this issue May 20, 2024 · 3 comments

Comments

@chlbri
Copy link

chlbri commented May 20, 2024

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

v8

Which area(s) of pnpm are affected? (leave empty if unsure)

CLI, Store

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

Install pnpm by homebrew
Update the pnpm by running command : pnpm install -g pnpm@latest
And when you type : "pnpm -v", nothing is updated

Describe the Bug

The pnpm version is still the previous one (v8.10.5)

Nothing to stop. No server is running for the store at /Users/${USER}/.nvm/versions/node/v20.9.0/lib/node_modules/npm/pnpm/store/v3 The location of the currently running pnpm differs from the location where pnpm will be installed Current pnpm location: /opt/homebrew/bin
Target location: /Users/chlbri/.nvm/versions/node/v20.9.0/lib/node_modules/npm/pnpm

I try this command "pnpm add -g pnpm --global-dir /Users/${USER}/.nvm/versions/node/v20.9.0/lib/node_modules/npm/pnpm" and this command " pnpm add -g pnpm --global-dir /opt/homebrew/bin".
But when I run pnpm version, I get the same previous version

Expected Behavior

pnpm -v will return v9.1.1

Which Node.js version are you using?

v20.12.2

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

@MartinRamm
Copy link

If pnpm is in /opt/homebrew/bin, you probably installed pnpm with homebrew. Try upgrading with the same package manager you used to install pnpm initially: brew upgrade pnpm.

@chlbri
Copy link
Author

chlbri commented Jun 1, 2024

I will try it

@chlbri
Copy link
Author

chlbri commented Jun 1, 2024

It works thanks !

@chlbri chlbri closed this as completed Jun 1, 2024
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

2 participants