Skip to content

无法启动容器,容器内的 NodeJS 版本过低 #110

Description

@e7868a

按照 文档 https://docs.steedos.com/zh-CN/deploy/deploy-docker 部署,无法启动:

提示如下错误:

2024-10-23 02:36:33,515 INFO spawned: 'unpkg' with pid 3489
2024-10-23 02:36:33,529 INFO success: unpkg entered RUNNING state, process has stayed up for > than 0 seconds (startsecs)
unpkg stdout | Load environment configuration
unpkg stdout |
unpkg stdout | /opt/steedos/unpkg/node_modules/undici/lib/core/util.js:623
unpkg stdout |   const listeners = (obj[kListeners] ??= [])
unpkg stdout |                                      ^^^
unpkg stdout |
unpkg stdout | SyntaxError: Unexpected token '??='
unpkg stdout |     at wrapSafe (internal/modules/cjs/loader.js:1029:16)
unpkg stdout |     at Module._compile (internal/modules/cjs/loader.js:1078:27)
unpkg stdout |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
unpkg stdout |     at Module.load (internal/modules/cjs/loader.js:979:32)
unpkg stdout |     at Function.Module._load (internal/modules/cjs/loader.js:819:12)
unpkg stdout |     at Module.require (internal/modules/cjs/loader.js:1003:19)
unpkg stdout |     at require (internal/modules/cjs/helpers.js:107:18)
unpkg stdout |     at Object.<anonymous> (/opt/steedos/unpkg/node_modules/undici/lib/dispatcher/client.js:8:14)
unpkg stdout |     at Module._compile (internal/modules/cjs/loader.js:1114:14)
unpkg stdout |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1143:10)
unpkg stdout |
2024-10-23 02:36:33,917 INFO exited: unpkg (exit status 1; not expected)

查看容器内的 NodeJS 版本是 14 , 不支持 '??=' 的写法。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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