ncu -g error with Volta
Author: dougg0kCreated Jan 1, 2025Updated Jan 6, 2025
Labelsenhancement
- I have searched for similar issues
Steps to Reproduce
- Install Volta
volta install node@latestvolta install corepack@latestcorepack enableCOREPACK_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/tscCurrent 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_codeI am not using npm, but pnpm.
Expected Behavior
To work with Volta.
Why
ncu -gwas needed? Becausepnpm update -g --latestwas not enough to upgrade some major versions in a package, even though it should.
Source: raineorshine/npm-check-updates