Skip to content

Instantly share code, notes, and snippets.

@zofy29
Last active November 13, 2020 09:47
Show Gist options
  • Save zofy29/be2544e41d1c61503500243c6e79c7c6 to your computer and use it in GitHub Desktop.
Save zofy29/be2544e41d1c61503500243c6e79c7c6 to your computer and use it in GitHub Desktop.
[Serverless - AWS Lambda] Error running Sharp: 'darwin-x64' binaries cannot be used on the 'linux-x64' platform
custom:
webpack:
includeModules: true
packagerOptions:
scripts:
- rm -rf node_modules/sharp
- npm install --arch=x64 --platform=linux sharp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment