Skip to content

Cannot find module '/home/ws-node-demo/dist/server.js #1

@Thavaprakash

Description

@Thavaprakash

Hi,

I'm getting below error after runing npm run start

ws-node-demo@1.0.0 start:simple /home/ws-node-demo
node ./dist/server.js

module.js:538
throw err;
^

Error: Cannot find module '/home/ws-node-demo/dist/server.js'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ws-node-demo@1.0.0 start:simple: node ./dist/server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ws-node-demo@1.0.0 start:simple script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
ERROR: "start:simple" exited with 1.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! ws-node-demo@1.0.0 start: npm-run-all -s clean build start:simple
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the ws-node-demo@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions