![](/img/trans.png)
[英]ENOENT error while deploying Cloud Functions to Firebase
[英]Firebase Functions Error while deploying to emulator
我正在嘗試使用最新版本的軟件包來啟動新的Firebase Functions項目。
我遵循了本教程https://youtu.be/DYfP-UIKxH0 :
Starting @google-cloud/functions-emulator [2018-04-04T19:05:12.124Z] Parsing function triggers [2018-04-04T19:05:12.404Z] Error while deploying to emulator: TypeError: Cannot read property 'call' of undefined TypeError: Cannot read property 'call' of undefined at Promise (/usr/local/lib/node_modules/firebase-tools/node_modules/@google-cloud/functions-emulator/src/client/rest-client.js:34:42) at getService.then (/usr/local/lib/node_modules/firebase-tools/node_modules/@google-cloud/functions-emulator/src/client/rest-client.js:33:16) at process._tickDomainCallback (internal/process/next_tick.js:135:7) ⚠ functions: Failed to emulate helloWorld
我有最新的功能模擬器* 1.0.0-beta4。 其他所有庫均為最新版本...
我現在不知道如何更好地調試它以及如何解決這個問題
如果現有進程在端口5000上偵聽,則會發生此錯誤。再次檢查是否有進程在運行,例如在Mac OS Sierra上
sudo lsof -n -iTCP:5000 | grep LISTEN
停止此過程或在其他端口上運行Firebase
firebase -p 7777 serve --only functions
無需重新安裝軟件包。 錯誤消息沒有幫助,我們花了一些時間來查找根本原因。
原來是其他應用程序在端口5001上監聽!
Firebase服務停止時出現一些奇怪的消息。 如果端口不忙,請檢查以下答案
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.