Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix npm start module not found on server dist #2

Closed
wants to merge 3 commits into from
Closed

Fix npm start module not found on server dist #2

wants to merge 3 commits into from

Conversation

Champetaman
Copy link

This Pull request fixes the error:

node:internal/modules/cjs/loader:1251
  throw err;
  ^

Error: Cannot find module '/root/inventory-management/server/dist/index.js'
    at Module._resolveFilename (node:internal/modules/cjs/loader:1248:15)
    at Module._load (node:internal/modules/cjs/loader:1074:27)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:217:24)
    at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:166:5)
    at node:internal/main/run_main_module:30:49 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}

Node.js v22.7.0

This fix the error related to the issue #1.

If you want don't merge the pakage-lock.json files. The fix is specifically on the /server/package.json.
Keep up with the good work. Kuddos!

@Champetaman Champetaman closed this by deleting the head repository Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant