【发布时间】:2020-01-20 23:12:31
【问题描述】:
我正在尝试通过 MEAN 应用程序上传到 AWS(弹性豆茎),但出现以下错误,我的网站显示 502 bad gateway
我不确定它在哪里找到了路径 /var/app/current/NodeJS/index.js,这是正确的吗?
-------------------------------------
/var/log/nodejs/nodejs.log
-------------------------------------
Error: Cannot find module '/var/app/current/NodeJS/index.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
internal/modules/cjs/loader.js:638
throw err;
^
Error: Cannot find module '/var/app/current/NodeJS/index.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
at Function.Module._load (internal/modules/cjs/loader.js:562:25)
at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
internal/modules/cjs/loader.js:638
throw err;
^
【问题讨论】:
标签: node.js amazon-web-services amazon-elastic-beanstalk