Open
Description
- I have searched for similar issues
Steps to Reproduce
- Install Volta
volta install node@latest
volta install corepack@latest
corepack enable
COREPACK_ENABLE_DOWNLOAD_PROMPT=0 corepack enable pnpm
- (Unsure if at least one global package is needed)
ncu -g
❯ pnpm i -g typescript
...
~
❯ whereis pnpm
pnpm: /home/user/.volta/bin/pnpm
~
❯ whereis tsc
tsc: /home/user/.local/share/pnpm/tsc
Current Behavior
After typing ncu -g
it is exited with an error.
It appears you are using Volta. `npm-check-updates --global` cannot be used with Volta because Volta has i
ts own system for managing global packages which circumvents npm.
If you are still receiving this message after uninstalling Volta, ensure your PATH does not contain an ent
ry for Volta and your shell profile does not define VOLTA_HOME. You may need to reboot for changes to your
shell profile to take effect.
Error: nu::shell::non_zero_exit_code
I am not using npm
, but pnpm
.
Expected Behavior
To work with Volta.
Why
ncu -g
was needed? Becausepnpm update -g --latest
was not enough to upgrade some major versions in a package, even though it should.