numjs icon indicating copy to clipboard operation
numjs copied to clipboard

Should change sharp version for M1 macs

Open goznauk opened this issue 2 years ago • 2 comments

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 avatar May 12 '22 09:05 goznauk

+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

dellaert avatar May 12 '22 12:05 dellaert

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

DaveFlashNL avatar Jan 26 '24 14:01 DaveFlashNL