[英]Firebase SyntaxError when deploying functions
I started a firebase functions project last week and it all worked like a charm for the first couple of days. 上周,我启动了一个Firebase功能项目,在开始的头几天中,它们的运行都非常吸引人。 This morning however I started having this error whenever I run the
firebase deploy --only functions
command: 但是今天早上,每当我运行
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)
I am now running the Firebase cli tools version 3.5.0 and Node 5.5.0 我现在正在运行Firebase CLI工具版本3.5.0和Node 5.5.0
Anyone knows what's happening? 有人知道发生了什么吗?
Ok the problem was with the Node installation but in order to solve that I had to first update homebrew. 好的,问题出在Node安装上,但是为了解决这个问题,我必须先更新自制软件。 Once I did that I could actually upgrade Node and the problem disappeared.
一旦这样做,我实际上可以升级Node,问题就消失了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.