Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 400
zaki tutu Avatar asked Jun 23 '19 11:06

zaki tutu


2 Answers

I had the same problem and this single line command did the trick.

npm rebuild --verbose sharp 

Consult the installation documentation at Common problems.

like image 116
Penny Liu Avatar answered Sep 22 '22 18:09

Penny Liu


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.

like image 21
Sanan Ali Avatar answered Sep 23 '22 18:09

Sanan Ali