I've encountered an issue while deploying my Next.js app on Vercel. It seems to be related to an unsupported platform error. I have attached an image displaying the exact error message.
npm ERR! code EBADPLATFORM
npm ERR! notsup Unsupported platform for @next/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="ddaeaabef0b9bcafaab4b3f0a5ebe99deceef3e9f3ef">[email protected]</a>: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
npm ERR! notsup Valid OS: darwin
npm ERR! notsup Valid Arch: x64
npm ERR! notsup Actual OS: linux
npm ERR! notsup Actual Arch: x64
npm ERR! A complete log of this run can be found in:
npm ERR! /vercel/.npm/_logs/2023-05-30T18_43_56_771Z-debug-0.log
Error: Command "npm install" exited with 1
BUILD_UTILS_SPAWN_1: Command "npm install" exited with 1
To troubleshoot, I have deleted package.lock.json and node.modules, reinstalled npm, but the problem persists.