I'm getting an error when installing Ruby and RVM on the terminal

How do I uninstall the old ruby versions and how do can I update to GemFile to 2.4.2?

Sandys-MacBook-Pro:roughhouse-web sandychow$ bundle install Your Ruby version is 2.4.2, but your Gemfile specified 2.2.5 Sandys-MacBook-Pro:roughhouse-web sandychow$ rvm list

rvm rubies

ruby-2.1.5 [ missing bin/ruby ] ruby-2.2.5 [ missing bin/ruby ] * ruby-2.4.1 [ x86_64 ] => ruby-2.4.2 [ x86_64 ]

rvm install ruby-[version]

if that doesn’t work try (sudo rvm install ruby-[version])
You should also change ownership from the root user to yourself in your directory.

type ls -la (it shows what the root user has access to, you’ll want to change it to yourself)
sudo chown -R your_name /usr/local/

You can run
rvm uninstall 2.4.1
to remove ruby 2.4.1 or just install new 2.4.2 and use new version

rvm install 2.4.2
rvm --default use 2.4.2

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.