错误:找不到模块'/var/app/current/NodeJS/index.js'+ 502错误的网关错误

问题描述 投票:0回答:1

[我正在尝试通过MEAN应用程序上传到AWS(弹性beantalk),但在下面出现错误,并且我的网站显示502 bad gateway

我不确定路径/var/app/current/NodeJS/index.js在哪里,这正确吗?

enter image description here

-------------------------------------
/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
1个回答
0
投票

您的package.json文件的外观如何?

© www.soinside.com 2019 - 2024. All rights reserved.