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

Dependency not working on M1 Macs #403

Open
Gioni06 opened this issue Jun 7, 2021 · 2 comments
Open

Dependency not working on M1 Macs #403

Gioni06 opened this issue Jun 7, 2021 · 2 comments

Comments

@Gioni06
Copy link
Contributor

Gioni06 commented Jun 7, 2021

On Macs with the new M1 chip the sharp dependency causes the npm install to crash. It's possible to avoid this issue by installing vips globally as described in this comment. Maybe this should be mentioned in the Readme?

lovell/sharp#2460 (comment)

@jzaefferer
Copy link
Collaborator

According to https://sharp.pixelplumbing.com/install#apple-m1 you "only" need to have a C++11 compiler installed to build from source. Probably via XCode, but it doesn't say.

@Gioni06
Copy link
Contributor Author

Gioni06 commented Jun 22, 2021

Oh, i see. But the package.json says ^0.27.1 which won't resolve to 0.28.x. I added a pull request, that might do the trick. Since a newer version of Puppeteer is also required the TS type definitions might not be up-to-data with this version.

#422

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

2 participants