Stuck on Step 1.3 of Creating New Ruby App


#1

Whenever I type the “rails new my_first_rails_app”, it gives me the following response in the terminal:

"Command ‘rails’ not found, but can be installed with:

sudo apt install ruby-railties"

I’ve followed the instructions exactly and have deleted stuff and tried the steps again. The lesson explicitly says DO NOT do any “sudo” commands, so I figured I’d obey and not do what the terminal keeps telling me to do…

Anyone know what’s going on? Thanks.


#2

Are you in the correct directory? I just finished these lessons and did not need to use sudo once.


#3

I’m not sure what the issue was, but I went back and deleted everything and tried again. And it worked.