[英]Error: Cannot find module '/var/app/current/NodeJS/index.js' + 502 Bad Gateway error
我正在尝试通过 MEAN 应用程序上传到 AWS (elastic beanstalk),但出现以下错误,并且我的网站显示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;
^
你的 package.json 文件是什么样子的?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.