DEV Community

Darragh O'Riordan
Darragh O'Riordan

Posted on • Originally published at darraghoriordan.com on

If you get "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

  1. Upgrade to the latest node from https://nodejs.org
  2. Upgrade yarn - npm upgrade -g yarn

Clear the yarn cache - yarn cache clean

When you change the version of node 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”

  1. Reinstall the packages associated with sharp
yarn add gatsby-plugin-sharp gatsby-plugin-manifest gatsby-transformer-sharp gatsby-transformer-sqip
Enter fullscreen mode Exit fullscreen mode

Top comments (1)

Collapse
 
jalaj profile image
Jalaj

I did all the things mentioned here....but i still get the error. Any ideas?