💻 Programming/React Native
Something went wrong installing the "sharp" module
maani
2020. 12. 23. 14:19
Something went wrong installing the "sharp" module
dlopen(/Users/maani/Documents/react native/nexseat/node_modules/sharp/build/Release/sharp.node, 1): Library not loaded: @rpath/libvips-cpp.42.dylib
Referenced from: /Users/maani/Documents/react native/nexseat/node_modules/sharp/build/Release/sharp.node
Reason: image not found
- Remove the "node_modules/sharp" directory, run "npm install" and look for errors
- Consult the installation documentation at https://sharp.pixelplumbing.com/en/stable/install/
- Search for this error at https://github.com/lovell/sharp/issues
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn remove expo-cli -g
yarn add expo-cli -g
또는
npm uninstall expo-cli -g
npm install expo-cli -g