Last active
November 13, 2020 09:47
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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