Error while trying to install Discourse

The directory you typed is /var/www/discourse and when I typed this, I got bash: cd: /var/www/discourse: No such file or directory.

When I ran cd /var/discourse && gem update bundler I got this :arrow_down:

The program 'gem' is currently not installed. You can install it by typing: apt install ruby