I noticed a solution for Ubuntu production installs, but this is for development on MacOS. I’ve changed the config.development.json key-value pairs of “filename” and “contentPath” to the correct paths, but I still get an error. It looks like it has to do with node packages like ghost-cli. Here is the error:
Debug Information:
OS: macOS, v14.1.2
Node Version: v18.12.1
Ghost Version: 5.75.1
Ghost-CLI Version: 1.25.0
Environment: development
Command: 'ghost start'
Message:
node:internal/modules/cjs/loader:998
throw err;
^
Error: Cannot find module '/Users/developer/Sites/ghost-jon/current/index.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
at Module._load (node:internal/modules/cjs/loader:841:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.12.1
Stack: Error:
node:internal/modules/cjs/loader:998
throw err;
^
Error: Cannot find module '/Users/developer/Sites/ghost-jon/current/index.js'
at Module._resolveFilename (node:internal/modules/cjs/loader:995:15)
at Module._load (node:internal/modules/cjs/loader:841:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.12.1
at ChildProcess.<anonymous> (/Users/developer/.nvm/versions/node/v18.12.1/lib/node_modules/ghost-cli/lib/utils/local-process.js:65:35)
at ChildProcess.emit (node:events:513:28)
at ChildProcess._handle.onexit (node:internal/child_process:291:12)