[Ruby] [Rails version control] rails version downgrade

less than 1 minute read

[Synopsis]

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

mac.terminal


Fetching sassc 2.4.0
Installing sassc 2.4.0 with native extensions

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

[Cause]

Because we upgraded rails version

[Solution]

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

mac.terminal



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

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

$ gem uninstall railties -v '6.0.3.2'
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