[Ruby] [Rails version control] rails version downgrade

less than 1 minute read


Suddenly, rails new did not work and it solidified. .. .. ..


Fetching sassc 2.4.0
Installing sassc 2.4.0 with native extensions

It does not get stuck at the above points. .. .. why. .. ..


Because we upgraded rails version


There are many solutions to investigate, I **” decided to revert the rails version back” ** I just upgraded the version for trial,


$rails -v
 Rails // <- The current version of rails is displayed ①

$ gem uninstall rails
Select gem to uninstall:
 2. rails-5.2.4
 3. rails-
 4. rails-
 5. rails-
 6. rails-
 7. All versions
> 6 // <- Select the version you want to uninstall ②

$ gem uninstall railties -v ''
Continue with Uninstall? [yN] y // <- enter "y" ③

that’s all!!!

Other Play with the sassc gem. There are solutions such as increasing the GCC version.

[I want to read it together]

■ About other solutions https://teratail.com/questions/231820

Rails downgrade in 3 minutes https://qiita.com/Hassan/items/eef26c870eb26a0c68e0

■ [devise] rails g devise:install is not possible, at times! !! https://qiita.com/tanaka-yu3/items/8a2002921cda080907f8