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

Upgrade to sharp v0.28.0 #30807

Closed
stephenlprice opened this issue Apr 10, 2021 · 2 comments
Closed

Upgrade to sharp v0.28.0 #30807

stephenlprice opened this issue Apr 10, 2021 · 2 comments
Labels
type: bug An issue or pull request relating to a bug in Gatsby

Comments

@stephenlprice
Copy link

Description

When installing gatsby-plugin-image, as well as other dependencies as required by the updated guide for images on a Mac computer running the new Apple M1 chips I get the following error:

Command:

npm install gatsby-plugin-image gatsby-plugin-sharp gatsby-source-filesystem gatsby-transformer-sharp

Note: the error also happens when installing gatsby-plugin-image on its own. It also errors out even when adding arch -x86_64.

arch -x86_64 npm install gatsby-plugin-image

Error:

ERR! sharp Prebuilt libvips 8.10.5 binaries are not yet available for darwin-arm64v8

Steps to reproduce

A sample repository is not necessary to reproduce this issue, all that is needed is a machine running an Apple M1 chip where you will attempt to install this plugin and/or dependencies. In any case, you can test this with this sample repo.

Expected result

Users on Apple M1 chips can install this plugin (which is widely used across the Gatsby ecosystem causing starters and other plugins to fail).

sharp advises upgrading to v0.28.0: lovell/sharp#2460 (comment)

What should happen?

packages are installed successfully

What happened.

npm ERR! command failed

Environment

Run gatsby info --clipboard in your project directory and paste the output here.

System:
OS: macOS 11.2.2
CPU: (8) arm64 Apple M1
Shell: 5.8 - /bin/zsh
Binaries:
Node: 15.9.0 - ~/.nvm/versions/node/v15.9.0/bin/node
npm: 7.5.3 - ~/.nvm/versions/node/v15.9.0/bin/npm
Languages:
Python: 2.7.16 - /usr/bin/python
Browsers:
Safari: 14.0.3
npmPackages:
gatsby: ^3.2.1 => 3.2.1
gatsby-plugin-purgecss: ^6.0.0 => 6.0.0
gatsby-plugin-sass: ^4.2.0 => 4.2.0
npmGlobalPackages:
gatsby-cli: 3.2.0

@stephenlprice stephenlprice added the type: bug An issue or pull request relating to a bug in Gatsby label Apr 10, 2021
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 10, 2021
@LekoArts
Copy link
Contributor

Please see: #30739 (comment)

@LekoArts LekoArts removed the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Apr 12, 2021
@stephenlprice
Copy link
Author

vielen Dank!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

No branches or pull requests

2 participants