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?
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?
I encountered the identical issue, however, the execution of this single command line successfully resolved the problem at hand.
npm rebuild --verbose sharp
Please refer to the installation documentation under Common problems for further guidance.
Error: Something went wrong installing the "sharp" module Cannot find module '../build/Release/sharp-darwin-arm64v8.node'
for me on moving from a Intel to arm based Mac.
Find the latest version of sharp and install it.
npm install [email protected] --save
This worked for me.
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.
Maybe you configured npm to ignore installation scripts. In that case delete the sharp module and run:
npm install --ignore-scripts=false
This causes after i updated, npm,angular version.
just try
npm i cordova-res
it solves above problem.
I was facing same issue in mac when I update my developer tools using xcode-select install then node project stop working on local
worked for me
If anyone has this problem and other solutions didn't solve it. Try to uninstall vips globally, it worked for me.
npm -g uninstall libvips
brew uninstall vips
Then:
yarn clean
yarn install
gatsby develop
if trying some quick command fixes don't work you can try rebuilding the node_modules.
Delete the whole node_modules folder and run npm install
npm install
If you're using Gatsby, it's good to check if updating all packages associated with sharp
helps. I had this problem twice, and it helped
yarn add gatsby-plugin-sharp gatsby-plugin-manifest gatsby-transformer-sharp gatsby-transformer-sqip
Or
npm install gatsby-plugin-sharp gatsby-plugin-manifest gatsby-transformer-sharp gatsby-transformer-sqip
You may need to completely reinstall expo-cli
package.
yarn global remove expo-cli
yarn global add expo-cli
OR
npm uninstall expo-cli -g
npm install expo-cli -g
(If you don't have expo-cli
installed globally, remove global
/ -f
flags)