Node sharp module on live Linux server

OS info

  • Operating System : Mac OSX 22.4.0
  • Wappler Version : 5.8.0

Problem description

…sharp module installed on Mac M1 has sharp-darwin-arm64v8.node
but hosting server require sharp-linux-x64.node .
How to solve the problem.

Steps to reproduce

Depending on your hosting node modules are installed there with npm install, so the right native module is installed in the node_modules folder there.

So you never need to upload your own local node_modules folder otherwise you will get such mismatches.

Thanks George