Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nvm list command throws, when no existing installation found #228

Closed
phoenisx opened this issue Sep 13, 2024 · 1 comment
Closed

nvm list command throws, when no existing installation found #228

phoenisx opened this issue Sep 13, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@phoenisx
Copy link

Hi

I was using omf before and recently switched to fisher.
I thought nvm list using fisher nvm plugin would list my previous installation, but it didn't and threw the following error:

~/.config/fish/functions/_nvm_list.fish (line 1): No matches for wildcard '$nvm_data/*'. See `help wildcards-globbing`.
string replace --all -- $nvm_data/ "" $nvm_data/*
                                      ^~~~~~~~~~^
in command substitution
        called on line 2 of file ~/.config/fish/functions/_nvm_list.fish
in function '_nvm_list'
        called on line 179 of file ~/.config/fish/functions/nvm.fish
in function 'nvm' with arguments 'list'
~/.config/fish/functions/_nvm_list.fish (line 2): Unmatched wildcard
    set --local versions (string replace --all -- $nvm_data/ "" $nvm_data/*)
                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
in function '_nvm_list'
        called on line 179 of file ~/.config/fish/functions/nvm.fish
in function 'nvm' with arguments 'list'

I deleted my previous node installations which were present inside ~/.nvm, and ran nvm install latest to reinstall node which worked and post that the above error went away.

The concern here is the error above made me a little confused at first

@jorgebucaran jorgebucaran added the bug Something isn't working label Sep 14, 2024
@jorgebucaran
Copy link
Owner

Should be good now! Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants