bamlab / react-native-make

A collection of everyday React Native CLI tools
MIT License
761 stars 87 forks source link

Upgrade Sharop to 0.28.0 for compatibility fixes on M1 processors #62

Open hserranome opened 3 years ago

hserranome commented 3 years ago

It doesn't work on the new M1 Apple processors. Throws up this error:

npm ERR! ../src/common.cc:25:10: fatal error: 'vips/vips8' file not found
npm ERR! #include <vips/vips8>
npm ERR!          ^~~~~~~~~~~~
npm ERR! 1 error generated.
npm ERR! make: *** [Release/obj.target/sharp/src/common.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2

It can be fixed by updating to 0.28.0 as seen here: https://github.com/lovell/sharp/issues/2460#issuecomment-809499444