jorgebucaran / nvm.fish

The Node.js version manager you'll adore, crafted just for Fish
https://git.io/nvm.fish
MIT License
2.06k stars 69 forks source link

`nvm alias` #200

Closed lunaleaps closed 1 year ago

lunaleaps commented 1 year ago

I'm trying to use nvm alias as I'm trying to debug why I'm getting an error like:

N/A: version "default" is not yet installed.

and I've seen advice to run nvm alias and nvm unalias.

I don't see those as commands available for the fish port -- I'm wondering if there's an equivalent?

jorgebucaran commented 1 year ago

We don't have an nvm alias yet. Why do you need it?

lunaleaps commented 1 year ago

I was attempting to debug an issue with a React Native version that had an error:

N/A: version "default -> N/A" is not yet installed.

You need to run "nvm install default" to install it before using it.
Command PhaseScriptExecution failed with a nonzero exit code

And the recommended solution was to use nvm alias to define a default version. I had tried setting $nvm_default_version but that didn't seem to work.

I ended up switching to fish-nvm as I needed this. Just raising it up

jorgebucaran commented 1 year ago

How exactly $nvm_default_version didn't work?

lunaleaps commented 1 year ago

Well nvm install default didn't work as default isn't recognized. I mentioned $nvm_default_version to share my guess at getting this to work but I'm not sure that's the desired behavior. Since defining an alias of default is different than setting a default node version.

I'll close this issue for now as it seems there isn't value in adding this alias command and I'm fine using another solution

jorgebucaran commented 1 year ago

Yeah, but that's not how $nvm_default_version works.