When pushing my node.js project to heroku server. I receive the following error:
ERR! sharp 'darwin-x64' binaries cannot be used on the 'linux-x64' platform. Please remove the 'node_modules/sharp/vendor' directory and run 'npm install'. remote: info sharp Attempting to build from source via node-gyp but this may fail due to the above error remote: info sharp Please see https://sharp.pixelplumbing.com/install for required dependencies
I reinstall node_modules as suggested however nothing changes. I am able to run my project locally. The error only arises when I am trying to push to heroku master. Can someone please help or explain.