sharp version v34.1 error but sharp v33.5 working
I had this error when i had sharp with version v34.1 in my package.json, but when i changed it to 33.5 it disapperaed.
So there need to be some update for glib in node environment probably. ( missing GLIBCXX_3.4.26)
Loading the pushed modules encountered the following
error:
Uncaught Failed to analyze r2_helpers.js: Could not load the "sharp" module using the linux-arm64 runtime
ERR_DLOPEN_FAILED: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.26' not found (required by /var/task/source/6aaee8a9-beac-406d-aa17-ce183163d2f9/node_modules/@img/sharp-linux-arm64/lib/sharp-linux-arm64.node)
Possible solutions:
- Ensure optional dependencies can be installed:
npm install --include=optional sharp
- Ensure your package manager supports multi-platform installation:
See https://sharp.pixelplumbing.com/install#cross-platform
- Add platform-specific dependencies:
npm install --os=linux --cpu=arm64 sharp
- Consult the installation documentation:
See https://sharp.pixelplumbing.com/install
