Hello Gatsby - Part 2: Setting up a Gatsby Blog

I found the process of setting up a Gatsby blog to be fairly trivial, although I did run into a couple of issues along the way.

This Gatsby tutorial covers most of the steps for getting setup with Gatsby, configuring Netlify to host your blog, and allow for an admin panel to publish posts from (which I'm using for this one).

Problem 1 - c++

At step 2 is where I ran into my first problem, in that my machine didn't have the correct (unlisted) c++ dependencies installed. When running gatsby develop I received an error stating that I needed Visual Studio installed with 'Desktop development with c++'. Unsuspectingly, installing Visual Studio with 'Desktop development with c++' selected, I was then able to run gatsby develop.

However, this brought about it it's own error.

Problem 2 - sharp module

Error: Something went wrong installing the "sharp" module Cannot find module '../build/Release/sharp.node'

Running npm rebuild --verbose sharp downloads and installs sharp/libvips, which is a missing dependency that seemingly was not installed as part of npm i.

Either way, at the end of the Gatsby tutorial, you should have a website & blog hosted on netlify, although with a generic url and be able to access it locally via localhost:8000.

Shortly I'm going to be configuring my Cloudflare instance to point to Netlify, as opposed pointing at my existing Jekyll blog hosted on Github pages.