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

ncu -g error with Volta #1486

Open
1 task done
dougg0k opened this issue Jan 1, 2025 · 1 comment
Open
1 task done

ncu -g error with Volta #1486

dougg0k opened this issue Jan 1, 2025 · 1 comment

Comments

@dougg0k
Copy link

dougg0k commented Jan 1, 2025


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? Because pnpm update -g --latest was not enough to upgrade some major versions in a package, even though it should.

@dougg0k
Copy link
Author

dougg0k commented Jan 4, 2025

I am considering changing from Volta to Mise to manage Node and all other tools with a pre-config which fits right in the dotfiles.

So, no rush here.


Edit:

After doing the change, clearly the issue are in this tool with pnpm (global) not Volta, but there is still the barrier with it.


Edit2:

This is false Volta has its own system for managing global packages which circumvents npm. at least in this context.

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