Run n8n as a Service with PM2

No problem! Not sure why the native npm n8n.cmd runs has issues running but the one in the bin is fine (probably some issue with absolute/relative pathing).

You can also likely handle that in a ecosystem.config.js file by setting `cwd: ‘C:\Users<User Profile>\AppData\Roaming\npm\node_modules\n8n\bin’

Once you got it running though, pm2 save / pm2 resurrect becomes your best friend and you don’t have to worry about it so guess doesn’t matter much xD

2 Likes