【问题标题】:Error: Cannot find module '/var/app/current/NodeJS/index.js' + 502 Bad Gateway error错误:找不到模块 '/var/app/current/NodeJS/index.js' + 502 Bad Gateway 错误
【发布时间】: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


    【解决方案1】:

    你的 package.json 文件长什么样?

    【讨论】:

      猜你喜欢
      • 2019-03-25
      • 2018-04-23
      • 1970-01-01
      • 2016-12-25
      • 2021-08-17
      • 2021-07-13
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多