[RUBY] [Rails version control] rails version downgrade

[Synopsis]

Suddenly, rails new didn't work and it got stuck. .. .. ..

mac.terminal


Fetching sassc 2.4.0
Installing sassc 2.4.0 with native extensions

It freezes at the above points and does not proceed. .. .. why. .. ..

[Cause]

Because I upgraded the version of rails

[Solution]

There are many solutions to look for, I ** "I decided to go back one version of rails" ** I just upgraded the version as a trial, so ...

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 version of GCC.

[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: I can't install, it's time! !! https://qiita.com/tanaka-yu3/items/8a2002921cda080907f8

Recommended Posts

[Rails version control] rails version downgrade
About rails version specification
Rails version upgrade memorandum 5.0 → 5.1
Java version control on macOS
Version control Java with SDKMAN
Java version control with jenv
[Rails] Rails version upgrade error memorandum
Version control CocoaPods with Docker
[Grover] Generate PDF with Rails [2020 version]
Project ruby and rails version upgrade
Java version control with jenv on OSX
Gradle Dependent Package Version Control Best Practices
Java version control using cask + anyenv + jenv
[Vue.js] Implementation of menu function Implementation version rails6
# Java: vol1: [java / JDK version control best practice]
Java installation (Mac, Homebrew, multiple version control)