Skip to content

按照步骤构建镜像,启动报错了,本地start可以起来 #13

@Jesyjun

Description

@Jesyjun

klever-web@0.0.1 server /usr/src/app
node app.js

/usr/src/app/node_modules/http-proxy-middleware/dist/config-factory.js:38
throw new Error(errors_1.ERRORS.ERR_CONFIG_FACTORY_TARGET_MISSING);
^

Error: [HPM] Missing "target" option. Example: {target: "http://www.example.org"}
at Object.createConfig (/usr/src/app/node_modules/http-proxy-middleware/dist/config-factory.js:38:15)
at new HttpProxyMiddleware (/usr/src/app/node_modules/http-proxy-middleware/dist/http-proxy-middleware.js:128:40)
at createProxyMiddleware (/usr/src/app/node_modules/http-proxy-middleware/dist/index.js:6:28)
at Object. (/usr/src/app/app.js:14:3)
at Module._compile (internal/modules/cjs/loader.js:999:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
at Module.load (internal/modules/cjs/loader.js:863:32)
at Function.Module._load (internal/modules/cjs/loader.js:708:14)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60:12)
at internal/main/run_main_module.js:17:47
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! klever-web@0.0.1 server: node app.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the klever-web@0.0.1 server 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! /root/.npm/_logs/2020-12-24T09_56_36_529Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions