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

vfox use nodejs@<version> doesn't switch versions with msys2 windows #10

Closed
jcrben opened this issue May 7, 2024 · 2 comments
Closed

Comments

@jcrben
Copy link

jcrben commented May 7, 2024

It switches versions on a successful install, but not from vfox use command.

Activation: [[ $(command -v vfox) ]] && eval "$(vfox activate bash)"

ben@lenovo-legion ~$ echo $BASH_VERSION
5.2.26(1)-release
ben@lenovo-legion ~$ vfox install nodejs@20
Preinstalling [email protected]...
Downloading... 100% [=====================================================================================================================] (38 MB/s)
Verifying checksum 66dda1717cae30a13be6bb17ad96ee54b69f2c23c85acd9c3299b095fa26b452...
Unpacking C:\Users\ben\.version-fox\cache\nodejs\node-v20.12.2-win-x64.zip...
Install [email protected] success!
Please use vfox use [email protected] to use it.
ben@lenovo-legion ~$ node --version
v20.12.2
ben@lenovo-legion ~$ vfox use nodejs@22
Now using [email protected].
ben@lenovo-legion ~$ node --version
v20.12.2
ben@lenovo-legion ~$ vfox install nodejs@22
[email protected] is already installed
failed to install nodejs
ben@lenovo-legion ~$ vfox uninstall nodejs@22
nodejs@22 is not installed
ben@lenovo-legion ~$ vfox uninstall [email protected]
Uninstalled [email protected] successfully!
ben@lenovo-legion ~$ vfox install nodejs@22
Preinstalling [email protected]...
Downloading... 100% [=====================================================================================================================] (20 MB/s)
Verifying checksum 4b0f90bc3f1f41df16f9022ecded0c4eff55f8c3ece66ba348275c69fea4eb8e...
Unpacking C:\Users\ben\.version-fox\cache\nodejs\node-v22.1.0-win-x64.zip...
Install [email protected] success!
Please use vfox use [email protected] to use it.
ben@lenovo-legion ~$ vfox list
All installed sdk versions
├─┬java
│ └──v21.0.2+13
└─┬nodejs
  ├──v22.1.0
  └──v20.12.2

ben@lenovo-legion ~$ vfox use v22.1.0
v22.1.0 not supported, error: v22.1.0 not installed
ben@lenovo-legion ~$ vfox use nodejs v22.1.0
Please select a version of nodejs:
  -> 22.1.0
Now using [email protected].
ben@lenovo-legion ~$ vfox use nodejs v20.12.0
Please select a version of nodejs:
  -> 20.12.2
Now using [email protected].
ben@lenovo-legion ~$ node --version
v20.12.2
ben@lenovo-legion ~$ vfox use nodejs v22.1.0
Please select a version of nodejs:
  -> 22.1.0
Now using [email protected].
ben@lenovo-legion ~$ node --version
v20.12.2
@aooohan
Copy link
Member

aooohan commented May 13, 2024

Can you try again using the latest 0.5.0?

@jcrben
Copy link
Author

jcrben commented May 19, 2024

Looks to be resolved

@jcrben jcrben closed this as completed May 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants