简体   繁体   English

部署功能时的Firebase SyntaxError

[英]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.

相关问题 在 Firebase 中部署函数时出错 - Getting error when deploying functions in Firebase 在 firebase 函数中使用 got(npm) 时出现“SyntaxError: Unexpected token *” - "SyntaxError: Unexpected token *" when use got(npm) in firebase functions 在Firebase功能上部署Braintree服务器时发生意外错误 - Unexpected Error when deploying braintree server on firebase functions 部署firebase函数时为什么会报错? - Why do I get an error when deploying firebase functions? 使用 Netlify Functions 部署 React 应用程序时出现错误“SyntaxError: Cannot use import statement outside a module” - Error "SyntaxError: Cannot use import statement outside a module" when deploying React app with Netlify Functions Firebase - 错误:部署函数时出错 - Firebase - Error: There was an error deploying functions 部署 Firebase Cloud Functions 时出错 - Errors in Deploying Firebase Cloud Functions 使用Firebase云功能部署/测试功能 - Deploying/Testing functions with Firebase Cloud Functions 部署 firebase 项目时出现错误显示“找不到模块 firebase-functions” - Error shows 'cannot find module firebase-functions' when deploying a firebase project 将Microsoft bots Node.js部署到Firebase函数 - Deploying microsoft bots nodejs to firebase functions
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM