Cannot start strapi 4.10.1 because of Sharp MacOS

I am running this on MacOS with silicon M1 chip. I am trying to run my strapi project to change it, but whenever I try to run it I get this message:

[2024-04-08 13:50:30.681] debug: ⛔️ Server wasn't able to start properly.
[2024-04-08 13:50:30.682] error: Could not load js config file /Users/user/strapi/node_modules/@strapi/plugin-upload/strapi-server.js: Cannot find module 'sharp'

This is my package.json

 "dependencies": {
    "@strapi/plugin-graphql": "4.10.1",
    "@strapi/plugin-i18n": "4.10.1",
    "@strapi/plugin-users-permissions": "4.10.1",
    "@strapi/provider-upload-aws-s3": "^4.15.0",
    "@strapi/strapi": "4.10.1",
    "knex": "0.21.18",
    "pg": "8.5.1",
    "strapi-plugin-meilisearch": "0.9.1",
    "strapi-plugin-populate-deep": "^2.0.0",
    "strapi-plugin-transformer": "^3.1.0"

This topic has been created from a Discord post (1226863046048219247) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord

I had sharp installed locally, uninstalling it enabled the dependencies to install required version

heya, sorry did u manage to find the issue to this?