Skip to content

Instantly share code, notes, and snippets.

@cspotcode
Last active May 23, 2021 23:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cspotcode/c07208f11ed73dc7f81a0200e5aeb797 to your computer and use it in GitHub Desktop.
Save cspotcode/c07208f11ed73dc7f81a0200e5aeb797 to your computer and use it in GitHub Desktop.

To reproduce:

❯ volta --version
1.0.4

❯ npm --version
7.14.0

❯ npm install -g https://gist.github.com/cspotcode/c07208f11ed73dc7f81a0200e5aeb797.git

added 2 packages, and audited 3 packages in 3s

found 0 vulnerabilities
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!

❯ VOLTA_LOGLEVEL=debug npm install -g https://gist.github.com/cspotcode/c07208f11ed73dc7f81a0200e5aeb797.git
[verbose] Found default configuration at '/home/cspotcode/.volta/tools/user/platform.json'
[verbose] Acquiring lock on Volta directory: /home/cspotcode/.volta/volta.lock
[verbose] node@16.2.0 has already been fetched, skipping download
[verbose] npm@7.14.0 has already been fetched, skipping download
[verbose] yarn@1.22.10 has already been fetched, skipping download

added 2 packages, and audited 3 packages in 3s

found 0 vulnerabilities
[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

console.log('hello world');
{
"name": "volta-test",
"version": "0.0.0",
"peerDependencies": {
"lodash": "latest"
},
"bin": "index.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment