volta icon indicating copy to clipboard operation
volta copied to clipboard

Volta won't pin tools if an empty volta configuration is present

Open vallode opened this issue 9 months ago • 1 comments

For minimal reproduction:

  1. Create a new npm package.json npm init --yes
  2. Edit the package with an empty volta configuration "volta": {}
  3. Attempt to pin anything with volta volta pin node
  4. See error: error: No Node version found in this project.

Expected behaviour:

Volta should pin the default version of node, not throw an error.

vallode avatar Mar 15 '25 15:03 vallode

Hmph. Thats annoying! Thanks for writing up a good issue with steps to reproduce.

rwjblue avatar Mar 15 '25 15:03 rwjblue