volta
volta copied to clipboard
Can't install @vue/language-server
running npm install -g @vue/[email protected] fails with the following message:
❯ export VOLTA_LOGLEVEL=debug
❯ npm install -g @vue/[email protected]
[verbose] Found default configuration at '/home/manuel/.volta/tools/user/platform.json'
[verbose] Acquiring lock on Volta directory: /home/manuel/.volta/volta.lock
[verbose] [email protected] has already been fetched, skipping download
[verbose] [email protected] has already been fetched, skipping download
added 83 packages in 2s
9 packages are looking for funding
run `npm fund` for details
[verbose] Unlocking Volta Directory
Volta error: Could not determine the name of the package that was just installed.
Please rerun the command that triggered this error with the environment
variable `VOLTA_LOGLEVEL` set to `debug` and open an issue at
https://github.com/volta-cli/volta/issues with the details!
[verbose] No custom hooks found
@MnlPhlp It's from here, and Volta can not find package name. https://github.com/volta-cli/volta/blob/a7384fa4fc7a0eca961032da4d962d94218b5868/crates/volta-core/src/tool/package/mod.rs#L168
I think last arg could be package name for npm install -g xxx if package not found from context.
I made a fix, and you can try from https://github.com/linux-china/volta/releases/tag/v2.0.2-dotenvx20250903