- sudo node current/index.js
internal/modules/cjs/loader.js:905
throw err;
^
Error: Cannot find module ‘/var/www/ghost/current/index.js’
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:75:12)
at internal/main/run_main_module.js:17:47 {
code: ‘MODULE_NOT_FOUND’,
requireStack:
}
Server operating system? What have you done recently that might be to blame? (Recent upgrade?) Is this the first error message in the logs? (It’s usually the first problem.) Any luck with ‘ghost doctor’ ?
Is that index.js file at that address? If it isn’t, is it supposed to be, or do you have a mismatch between your configuration file and your actual directory structure?
Wait, hang on a second. Normally one starts ghost with ‘ghost start’. What set of directions are you following that you’re starting it this way?