【问题标题】:Firebase SyntaxError when deploying functions部署函数时出现 Firebase SyntaxError
【发布时间】:2017-04-03 07:54:04
【问题描述】:

我上周开始了一个 firebase 函数项目,在最初的几天里,一切都很顺利。但是今天早上,每当我运行firebase deploy --only functions 命令时,我就开始出现此错误:

Error: Error occurred while parsing your function triggers.

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Module.require (module.js:367:17)
    at require (internal/module.js:16:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/firebase-tools/lib/triggerParser.js:16:9)
    at Module._compile (module.js:413:34)
    at Object.Module._extensions..js (module.js:422:10)

我现在正在运行 Firebase cli 工具版本 3.5.0 和 Node 5.5.0

有人知道发生了什么吗?

【问题讨论】:

    标签: node.js firebase


    【解决方案1】:

    好的,问题出在节点安装上,但为了解决这个问题,我必须先更新自制软件。一旦我这样做了,我实际上可以升级 Node,问题就消失了。

    【讨论】:

    • 我不相信。这才是真正的解决方案!
    猜你喜欢
    • 2022-01-09
    • 2019-04-27
    • 2018-10-22
    • 2020-03-26
    • 1970-01-01
    • 2021-06-04
    • 2023-02-07
    • 2021-11-30
    • 2019-07-28
    相关资源
    最近更新 更多