Encountering a problem when trying to install new plugins

System Information
  • Strapi Version: 4.13.7
  • Operating System: Mac, m1 chip
  • Database: posgresql
  • Node Version: 18.17
  • NPM Version: 9.6
  • Yarn Version:

Every time I attempt to add a new plugin, my Strapi instance switches to production mode automatically then I have to remove the plugin and clear the cache to move back to development mode. I am already using an email plugin which works fine. I’ve made efforts to install both the CkEditor and Placeholder plugins.

Can someone help me please ?