Gatsby: Something went wrong installing the "sharp" module

Created on 28 Jan 2020  路  2Comments  路  Source: gatsbyjs/gatsby

install gatsby-plugin-sharp plugin but when run command

gatsby develop
then return error

Screenshot from 2020-01-28 23-05-22

Most helpful comment

@KamranMaqbool I sometimes see this, especially when moving between different branches that have different dependency versions, sharp seems especially vulnerable to this.

To resolve I do (with yarn):

  • rm -r node_modules/sharp
  • yarn install --check-files

All 2 comments

@KamranMaqbool I sometimes see this, especially when moving between different branches that have different dependency versions, sharp seems especially vulnerable to this.

To resolve I do (with yarn):

  • rm -r node_modules/sharp
  • yarn install --check-files

Thank you for opening this, @KamranMaqbool

There are several issues discussing this problem with suggested solutions:

18277

17659

15320

Try those, one of them should fix it for you.

We're marking this issue as answered and closing it for now but please feel free to reopen this and comment if you would like to continue this discussion. We hope we managed to help and thank you for using Gatsby! 馃挏

Was this page helpful?
0 / 5 - 0 ratings