Closed Vucius closed 1 year ago
ridk use
is always only for the current shell. It's meant to quickly switch between different ruby versions or to run different projects with a dedicated ruby version.
The permanent switch between ruby versions is through the PATH environment variable in the Windows system settings. Just change the path from X:/Ruby/Ruby30-x64
to X:/Ruby/Ruby27-x64
there or drop multiple entries if there are any.
I still have some parameter in mind, that makes the switch permanent (like ridk use --default
or so), but so far this isn't implemented.
ridk use
is always only for the current shell. It's meant to quickly switch between different ruby versions or to run different projects with a dedicated ruby version.The permanent switch between ruby versions is through the PATH environment variable in the Windows system settings. Just change the path from
X:/Ruby/Ruby30-x64
toX:/Ruby/Ruby27-x64
there or drop multiple entries if there are any.I still have some parameter in mind, that makes the switch permanent (like
ridk use --default
or so), but so far this isn't implemented.
Now i know how to swith different ruby.thank u
I find using pik a simple way to run using different Ruby versions on Windows, and wrote about it here: https://notepad.onghu.com/2021/ruby3-windows-pik-multiple-installations/
ridk use tool
doesn't work.I installed ruby2.7.6 with DEVKIT via
rubyinstaller-devkit-2.7.6-1-x64.exe
. And then installed ruby3.0.2 viarubyinstaller-3.0.2-1-x64.exe
. But, I found I couldn't switch back to ruby2.7.6 viaridk ues
cmd information:And then, I closed
cmd.exe
, and open a new one cmd information:I did those thing on another computer, it performed same.