AWS Elastic Beanstalk:构建节点应用程序时出错



我正在尝试在引导我的帐户和区域后构建我的节点应用程序,在终端中执行node run build后出现此错误:

node:internal/modules/cjs/loader:958
throw err;
^
Error: Cannot find module '/.../cdk-eb-infra/run'
at Module._resolveFilename (node:internal/modules/cjs/loader:955:15)
at Module._load (node:internal/modules/cjs/loader:803:27)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:18:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
Node.js v18.8.0

知道问题出在哪里吗?谢谢

文档中出现错误。它应该是npm run build

最新更新