Skip to content

Check if the cli tool already exists #2054

@ahaoboy

Description

@ahaoboy

I installed fnm to ~/tool/fnm using the official fnm installation script

Then use cargo binstalll fnm to install fnm to ~/.cargo/fnm

This results in two copies of fnm, and ~/tool has a higher priority than ~/.cargo in the system path.

When I use cargo binstall fnm to install the latest version again, although the latest version is installed to ~/.cargo, the old version is still used in shell

Is it possible to add a detection that if the installed program already exists and is not in ~/.cargo, the user should be prompted that this may be a risk?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions