nicolaspanel / numjs

Like NumPy, in JavaScript

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Should change sharp version for M1 macs

goznauk opened this issue · 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 :)

+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

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