resume-cli
resume-cli copied to clipboard
index.js set as main
index.js was removed in https://github.com/jsonresume/resume-cli/pull/437 but is still set as main: https://github.com/jsonresume/resume-cli/blob/master/package.json#L5
node:internal/modules/cjs/loader:352
throw err;
^
Error: Cannot find module '/data/node_modules/resume-cli/index.js'. Please verify that the package.json has a valid "main" entry
at tryPackage (node:internal/modules/cjs/loader:344:19)
at Function.Module._findPath (node:internal/modules/cjs/loader:557:18)
at resolveMainPath (node:internal/modules/run_main:16:25)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:70:24)
at node:internal/main/run_main_module:17:47 {
code: 'MODULE_NOT_FOUND',
path: '/data/node_modules/resume-cli/package.json',
requestPath: '/data/node_modules/resume-cli'
}
Met with the same issue!
AFAIR it wasn't too much of a deal in the end, i just needed to install/build it differently (different folder/command). Not sure if it was a problem in the container or during a local test, so this might be unrelated but here is how i am using it now : https://github.com/rsteube/jsonresume-headless/blob/master/Dockerfile