How to fix Something went wrong installing the "sharp" module and Cannot find module '../build/Release/sharp.node' in expo

zaki tutu picture zaki tutu · Jun 23, 2019 · Viewed 16.6k times · Source

I tried to install expo after I executed the command exp start but I got:

Something went wrong installing the "sharp" module

Cannot find module '../build/Release/sharp.node'.

How can I fix this problem?

Answer

Sanan Ali picture Sanan Ali · Apr 24, 2020

I am not using expo but faced this issue in react native. All I did is "deleted node_modules/sharp" folder. run npm install. fixed the issue.