6

'win32-x64' binaries cannot be used on the 'linux-x64' platform got this error while installing node sharp on windows system. This is breaking my lambda code on aws while execution.

Ankit Singh
  • 325
  • 3
  • 12
  • Tried npm uninstall sharp and then install again, still getting the same issue – Ankit Singh Dec 26 '19 at 10:16
  • Installed sharp using **ubuntu** zipped it, still got error */var/task/node_modules/sharp/build/Release/../../vendor/lib/libvips-cpp.so.42: file too short* – Ankit Singh Dec 26 '19 at 10:45
  • **package.json** `{ "name": "resize", "version": "1.0.0", "description": "image resizer", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "author": "Ankit", "license": "ISC", "dependencies": { "serverless-plugin-tracing": "^2.0.0", "sharp": "^0.23.4" } }` – Ankit Singh Dec 26 '19 at 10:50
  • I'm having the same issue. I can sorta understand the error message, but no idea how to work around it on AWS. – Thomas Cheng Apr 05 '20 at 16:42
  • Did you people solve the problem? I am facing the same issue – miraquee Feb 11 '21 at 18:48
  • Still running into it. Says delete node_modules/sharp... – ssmith Oct 13 '22 at 19:14

0 Answers0