Tiny Supercomputer

Basic process:

npm i -g npm@latest
git clone [repo]
npm install
npm i -g gatsby

Going through the process of setting up my new M1 Mini I ran into a few odd things.

Running npm install on the blog was giving me errors about vips and the sharp plugin not having binaries for darwin-arm64.

npm ERR! info sharp Downloading https://github.com/lovell/sharp-libvips/releases/download/v8.10.5/libvips-8.10.5-darwin-arm64v8.tar.br
npm ERR! ERR! sharp Prebuilt libvips 8.10.5 binaries are not yet available for darwin-arm64v8
npm ERR! info sharp Attempting to build from source via node-gyp but this may fail due to the above error
npm ERR! info sharp Please see https://sharp.pixelplumbing.com/install for required dependencies

I googled for suggestions and came across one to install vips manually with homebrew.

brew install vips

Naturally that exploded with one very nice suggestion.

Error: gcc: the bottle needs the Xcode CLT to be installed.
You can try to install from source with:
brew install --build-from-source gcc

So I installed Xcode CLT with the traditional command

xcode-select --install

Homebrew was now able to download and build a million things including vips.

brew install vips

Now that our system is happy npm install works

npm install