'Jekyll Serve command not working - Errors include MissingDependencyException and MissingSpecError

As the title above says, I'm trying to build a site on localhost with jekyll serve but I keep getting several errors.

I've done all the steps described here to build my site, but nothing seems to work. I've tried several troubleshooting sources I found online, as well.

Also, the directory I'm trying to build with is a local GitHub repository.

Any suggestions on what I should do?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source