Adding Strapi to PM2 on Windows

System Information
  • Strapi Version:4.25.11
  • Operating System: Windows 11
  • Database: postgres
  • Node Version: 20
  • NPM Version: 10.2.4
  • Yarn Version: 1.22.21

Hi friends, I have a problem. I’m trying to add a strapi app to pm2 with the following command “pm2 start npm --name your-app-name – run start”, it is added but it instantly appears in PM2 with errored status. I attach the error log img. I’ve already searched everywhere but I can’t find a way to skip that error.