pnpm: PNPM update fails at times
I’ve tried this before too while updating pnpm
so this is an issue.
I am on version 1.31.6
& it prompted me to install a new version 1.33.2
which was published yesterday.
But when I try npm i -g pnpm
or pnpm i -g pnpm
it doesn’t do anything 😭
Here’s the output of pnpm i -g pnpm
👇
WARN The store is not on the same device on which the installation is done. Store is on /dev/disk0, device is on /dev/disk1
Resolving: total 1, reused 0, downloaded 0
I also tried pnpm i -g pnpm@1.33.2
but it still gives the same message as above 👆
I don’t know if its npm
problem or pnpm
but it doesn’t update as I’m still on 1.31.6
rather than 1.33.2
as it was published yesterday & I was prompted to install that when I typed pnpm start
to run my program
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 26 (25 by maintainers)
Commits related to this issue
- fix: installing pnpm to the correct execPath ref pnpm/pnpm#1052 — committed to pnpm/self-installer by zkochan 6 years ago
- fix: the value of prefix during global install BREAKING CHANGE: config() is an async function ref pnpm/pnpm#1052 — committed to pnpm/config by zkochan 6 years ago
- fix: the value of prefix during global install BREAKING CHANGE: config() is an async function ref pnpm/pnpm#1052 — committed to pnpm/config by zkochan 6 years ago
- fix: correct prefix is used during globall install/update/remove ref #1052 — committed to pnpm/pnpm by zkochan 6 years ago
which pnpm
gives/usr/local/bin/pnpm
Then I tried
curl -L https://unpkg.com/@pnpm/self-installer | PNPM_BIN_DEST=/usr/local/bin node
& it works 🎉
pnpm -v
now gives1.33.2
. Howeverpnpm upgrade
command might be great.I see, so it is a symlink executable. Thanks, it helped. I’ll look into it
The fix has been published with
pnpm@1.35.6
. So when you’ll have a version>=1.35.6
you should be able to update pnpm to the next version. I guess you could test it earlier by downgrading pnpm fromv1.35.6
the standalone script should work now
pnpm i -g pnpm
not fixed yet