How I solve this error:
sharp: Installation error: ‘darwin-x64’ binaries cannot be used on the ‘darwin-arm64v8’ platform. Please remove the ‘node_modules/sharp’ directory and run ‘npm install’ on the ‘darwin-arm64v8’ platform.
is by changing to correct / original node version used on that project.
For this, on MacOS, I need to switch to node v 14.
There are many ways to install and use different node version. Personally, I use nvm.
nvm use 14