Hey, I have installed PM2 in my aapanel, I am able to use normal js, but I need express and another lib to be used in my projects. I have uploaded the project to aapanel. everything is working fine at localhost but at aapanel, it's not working. I have already installed express module from the module tab.

but I am getting error PM2 log: Script /www/wwwroot/e-sportsindia.in/api/new/index.js had too many unstable restarts (16). Stopped. "errored"

Please help me to resolve this error.

15 days later

I have rectified the problem and the solution is you have to add node_modules file with your project file and it will work perfectly. For all those having this problem can try this.