[2022-06-26T09:56:21.584Z][system] 开始构建 20220626-175621
[2022-06-26T09:56:21.606Z][system] 正在克隆应用代码 ...
[2022-06-26T09:56:23.395Z][system] [Git] master: Create package.json
[2022-06-26T09:56:23.553Z][system] 运行环境:nodejs
[2022-06-26T09:56:23.588Z][system] 正在下载和安装依赖项 ...
[2022-06-26T09:59:11.629Z][system] 部署失败:build failed: > nightscout@14.2.5 postinstall /home/leanengine/app
webpack --mode production --config webpack/webpack.config.js && npm run-script generate-keys
[webpack-cli] Failed to load '/home/leanengine/app/webpack/webpack.config.js' config
[webpack-cli] Error: Cannot find module '/home/leanengine/app/webpack/webpack.config.js'
Require stack:
- /home/leanengine/app/node_modules/webpack-cli/lib/webpack-cli.js
- /home/leanengine/app/node_modules/webpack-cli/lib/bootstrap.js
- /home/leanengine/app/node_modules/webpack-cli/bin/cli.js
- /home/leanengine/app/node_modules/webpack/bin/webpack.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:815:15)
at Function.Module._load (internal/modules/cjs/loader.js:667:27)
at Module.require (internal/modules/cjs/loader.js:887:19)
at require (internal/modules/cjs/helpers.js:74:18)
at WebpackCLI.tryRequireThenImport (/home/leanengine/app/node_modules/webpack-cli/lib/webpack-cli.js:204:22)
at loadConfigByPath (/home/leanengine/app/node_modules/webpack-cli/lib/webpack-cli.js:1404:38)
at /home/leanengine/app/node_modules/webpack-cli/lib/webpack-cli.js:1454:88
at Array.map ()
at WebpackCLI.loadConfig (/home/leanengine/app/node_modules/webpack-cli/lib/webpack-cli.js:1454:68)
at WebpackCLI.createCompiler (/home/leanengine/app/node_modules/webpack-cli/lib/webpack-cli.js:1785:33) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/home/leanengine/app/node_modules/webpack-cli/lib/webpack-cli.js',
'/home/leanengine/app/node_modules/webpack-cli/lib/bootstrap.js',
'/home/leanengine/app/node_modules/webpack-cli/bin/cli.js',
'/home/leanengine/app/node_modules/webpack/bin/webpack.js'
]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! nightscout@14.2.5 postinstall: webpack --mode production --config webpack/webpack.config.js && npm run-script generate-keys
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the nightscout@14.2.5 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/leanengine/.npm/_logs/2022-06-26T09_59_10_778Z-debug.log
The command '/bin/sh -c npm run postinstall --if-present && npm run prepublish --if-present && npm run prepare --if-present' returned a non-zero code: 2