Skip to content

Suggestion: volta install node should error if node is being shadowed by another binary in PATH #1268

@untitaker

Description

@untitaker

volta setup takes care of volta being at the front of the path. However:

  1. I hand-maintain my .profile
  2. What if two programs did this?

Today I found out the answer to question 2. PATH contained additional binaries by other "shim" programs, and as a result volta's shim node was shadowed by another node

I believe volta, on every run of volta install, should check $PATH and ensure that the just-installed command actually resolves to the shim binary. The which crate can be used for this. If that isn't the case, volta should at least emit a warning, or even error. From a user POV, nothing was installed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions