nicolaspanel / numjs

Like NumPy, in JavaScript
MIT License
2.4k stars 184 forks source link

Should change sharp version for M1 macs #122

Open goznauk opened 2 years ago

goznauk commented 2 years ago

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 :)

dellaert commented 2 years ago

+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 commented 9 months ago

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