Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
e7868a opened this issue Oct 23, 2024 · 0 comments
Open

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

e7868a opened this issue Oct 23, 2024 · 0 comments

Comments

@e7868a
Copy link

e7868a commented Oct 23, 2024

按照 文档 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 , 不支持 '??=' 的写法。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant