意外的标记 ''来自 poppinss,运行节点 ace 迁移后:运行

问题描述

我正在尝试运行 node ace migration:run,但由于此错误而无法执行。

我尝试使用 yarn 和 npm 重新安装软件包,以及重新启动计算机。

我对如何修复它或如何通过 Google 寻求解决方案一无所知。

enter image description here

解决方法

您收到一个语法错误,它指向 ?. (the optional chaining operator)

您使用的 Node.js 版本不支持 2 well not probably it's not intuitive probably \\b(probably)\\b 3 sure no it's I mean it's very intuitive it's,intuitive \\b(it's|intuitive)\\b 4 I don't mean to be rude but it's anything but you know I,mean,it's \\b(I,mean|it's)\\b 运算符(Node 14 之前的版本)。

将您的 Node.js 升级到 14.0 或更高版本。