How to fix "Something went wrong installing the "sharp" module The specified procedure could not be found." in Gatsby
Here is what I had to do on windows to make this work
-
Upgrade to the latest Node.js from https://nodejs.org
-
Upgrade yarn -
npm upgrade -g yarn
-
Clear the yarn cache -
yarn cache clean
When you change the version of Node.js you might need to rebuild a bunch of packages to match the new version. First you have to clean out the cache. This also resolves the error associated with "Incorrect integrity when fetching from the cache" - (/2019/10/10/Incorrect-integrity-when-fetching-from-the-cache)
-
Reinstall the packages associated with sharp
yarn add gatsby-plugin-sharp gatsby-plugin-manifest gatsby-transformer-sharp gatsby-transformer-sqip
Summary
Hope that helps you! Let me know of Twitter.