Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should change sharp version for M1 macs #122

Open
goznauk opened this issue May 12, 2022 · 2 comments
Open

Should change sharp version for M1 macs #122

goznauk opened this issue May 12, 2022 · 2 comments

Comments

@goznauk
Copy link

goznauk commented May 12, 2022

numjs depends on sharp, and sharp depends on libvips

yarn add numjs will be failed installing libvips because sharp ^0.27.2 downloads wrong binary

At the Sharp documentation, they said

Prebuilt sharp and libvips binaries have been provided for macOS on ARM64 since sharp v0.29.0.

so the package.json should be updated to use this library.


FYI

brew install libvips
yarn add numjs

This works for quick fix :)

@goznauk goznauk changed the title Should change sharp version to Should change sharp version for M1 macs May 12, 2022
@dellaert
Copy link

+1: Ran into same issue. While I could install libvips fine, npm install numjs still failed with

npm ERR! make: *** [Release/nothing.a] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2

@DaveFlashNL
Copy link

may i bump this? it's really throwing a wrench in my app building project as this is still not updated for m1/m2/m3 macs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants