this is the error I get : ERROR: While executing gem ... (Gem::FilePermissionError) You don't have write permissions for the /Library/Ruby/Gems/2.6.0 directory.
I made sure I have ruby - 2.6 version also nodes, yarn, home-brew, and sqlite3
cant figure out what I'm doing wrong tried both sudo gem install rails and gem install rails I'm using a new Mac book pro
sudoat any random command that fails is not the answer. This is Apple's Ruby installation. It is only for internal use by Apple. Do not change its permissions. Do not usesudo. Simply do not use it at all. - Jörg W Mittag