DK
Please refer this one: github.com/lovell/sharp/issues/2443
The error message suggests node_modules was populated by running npm install on macOS/Darwin, which won't work on Linux. Make sure you're not sharing or copying an external node_modules within the Linux container.
=> It means that we should delete node_modules and run npm install in linux os not macos