I'm trying to use NSSM to host my discord bot written in Node.js on my Windows Server. When starting it, I get this error which I couldn't figure out:
throw err;
^
Error: Cannot find module 'C:\discord'
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
at Function.Module._load (node:internal/modules/cjs/loader:778:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:77:12)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
I don't really get it since I can host it normally on my local machine and also have no C:\discord directory. Starting it via a normal command works on my windows server too.