在Docker中运行时,我在apidoc (apidoc-0.50.3版本)上出错,我使用的是Node v12.22.7
。
指挥:
RUN npm install apidoc -g
RUN apidoc -e node_modules
错误:
node_modules/apidoc/lib/writer.js:136
const title = projectInfo.title ?? projectInfo.name ?? 'Loading...';
SyntaxError: Unexpected token '?'
帮我找出解决办法。
发布于 2021-12-31 06:52:39
我得到了答案:https://github.com/apidoc/apidoc/issues/1045 .Needed升级nodejs
https://stackoverflow.com/questions/70530594
复制相似问题