-
ENV:
One day I want to update pnpm itself to the latest version (for example, pnpm -v
6.31.0
pnpm add -g pnpm
# OK!
pnpm -v
6.31.0 # not change |
Beta Was this translation helpful? Give feedback.
Replies: 16 comments 23 replies
-
2024 comment: the official docs now recommend using original 2022 comment: |
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
I used the same method to install pnpm,and i used 'iwr https://get.pnpm.io/install.ps1 -useb | iex' in my PowerShell to update pnpm, I did it. |
Beta Was this translation helpful? Give feedback.
-
If you installed |
Beta Was this translation helpful? Give feedback.
-
The solution for me was remove pnpm manually and reinstall. To remove manually i use the command |
Beta Was this translation helpful? Give feedback.
-
I have a same problem couple weeks ago, i fixed it by running |
Beta Was this translation helpful? Give feedback.
-
Would be great to have a built-in command to have pnpm update. Much like bun has |
Beta Was this translation helpful? Give feedback.
-
Wow, why don't they just add: Try to these instructions ("Run a script from (blah blah blah)" + having to visit that page and read through a whole bunch of scenarios is just not user friendly):
And yes, |
Beta Was this translation helpful? Give feedback.
-
i have same problem |
Beta Was this translation helpful? Give feedback.
-
Easiest is to install pnpm with corepack Example of package.json I guess when there is an update you will need to run |
Beta Was this translation helpful? Give feedback.
-
One more answer: 😋
done |
Beta Was this translation helpful? Give feedback.
-
I am adding a new command to make it easier: #8424 |
Beta Was this translation helpful? Give feedback.
-
I have found out that you need to update it, using the same package that you used for the installation Since I could not remember how I installed pnpm then I check if I did it with NPM Then I checked homebrew
And there it was my pnpm in the outdated formulae packages 😭 I just run
And voila, I am now in 9.11 😄 . Can't wait now to have a newer version to try the |
Beta Was this translation helpful? Give feedback.
-
Running pnpm v9.10.0 earlier today, I used npm to update pnpm to 9.12.1. But the Windows 10 path wasn't updated even after a reboot. So the system
Can someone provide a tip for how this should be globally enabled/updated? Side note: "self-update" wasn't added to the usage info yet. Thanks for this great update! |
Beta Was this translation helpful? Give feedback.
-
I had an old
|
Beta Was this translation helpful? Give feedback.
2024 comment: the official docs now recommend using
pnpm self-update
: https://pnpm.io/installation#updating-pnpmoriginal 2022 comment:
pnpm add -g pnpm
should install latest available stablepnpm
. You can cherry pick the version withpnpm add -g [email protected]
(latest stable at the moment https://github.com/pnpm/pnpm/releases).