Firebase无法部署 [英] Firebase Can't Deploy

查看:122
本文介绍了Firebase无法部署的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个firebase项目,我已经维护了几个月,并且没有任何问题.

I have a firebase project I've been maintaining for months and haven't had any problems with.

我尝试多次运行firebase deploy无济于事.我已经在Google上搜索并搜索了SO,github和其他内容,找到了 这些

I've tried running firebase deploy multiple times to no avail. I've googled it and searched on SO, github, and others, found these links, none of which worked. I've tried updating firebase tools, uninstalling and reinstalling, and everything between. Please don't blindly flag as duplicate without reading.

我的错误的第一行看起来像这样:

The first line of my error looks like this:

\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\winston\lib\winston\logger.js:307
  throw ex;

这是我的完整输出:

firebase deploy

C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \ winston \ lib \ winston \ logger.js:307 扔前 ^

C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\winston\lib\winston\logger.js:307 throw ex; ^

错误:结束后写入 在writeAfterEnd(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \ winston \ node_modules \ ready-stream \ lib_stream_writable.js:261:12) 在PassThrough.Writable.write(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \ winston \ node_modules \ ready-stream \ lib_stream_writable.js:305:21)中 在File.log(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \ winston \ lib \ winston \ transports \ file.js:185:34) 在File._write(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \ winston-transport \ index.js:103:17) 在doWrite(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \可读流\ lib_stream_writable.js:428:64) 在writeOrBuffer(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \可读流\ lib_stream_writable.js:417:5) 在File.Writable.write(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \可读流\ lib_stream_writable.js:334:11) 在DerivedLogger.ondata(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \ winston \ node_modules \ ready-stream \ lib_stream_visible.js:681:20) 在DerivedLogger.emit(events.js:203:15) 在DerivedLogger.EventEmitter.emit(domain.js:448:20) 在addChunk(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \ winston \ node_modules \ ready-stream \ lib_stream_visible.js:298:12) 在可读AddChunk(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \ winston \ node_modules \可读流\ lib_stream_visible.js:280:11) 在DerivedLogger.Readable.push(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \ winston \ node_modules \ ready-stream \ lib_stream_visible.js:241:10)中 在DerivedLogger.Transform.push(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \ winston \ node_modules \可读流\ lib_stream_transform.js:139:32) 在DerivedLogger._transform(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \ winston \ lib \ winston \ logger.js:305:12) 在DerivedLogger.Transform._read(C:\ Users \ justi \ AppData \ Roaming \ npm \ node_modules \ firebase-tools \ node_modules \ winston \ node_modules \ ready-stream \ lib_stream_transform.js:177:10)

Error: write after end at writeAfterEnd (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\winston\node_modules\readable-stream\lib_stream_writable.js:261:12) at PassThrough.Writable.write (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\winston\node_modules\readable-stream\lib_stream_writable.js:305:21) at File.log (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\winston\lib\winston\transports\file.js:185:34) at File._write (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\winston-transport\index.js:103:17) at doWrite (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\readable-stream\lib_stream_writable.js:428:64) at writeOrBuffer (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\readable-stream\lib_stream_writable.js:417:5) at File.Writable.write (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\readable-stream\lib_stream_writable.js:334:11) at DerivedLogger.ondata (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\winston\node_modules\readable-stream\lib_stream_readable.js:681:20) at DerivedLogger.emit (events.js:203:15) at DerivedLogger.EventEmitter.emit (domain.js:448:20) at addChunk (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\winston\node_modules\readable-stream\lib_stream_readable.js:298:12) at readableAddChunk (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\winston\node_modules\readable-stream\lib_stream_readable.js:280:11) at DerivedLogger.Readable.push (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\winston\node_modules\readable-stream\lib_stream_readable.js:241:10) at DerivedLogger.Transform.push (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\winston\node_modules\readable-stream\lib_stream_transform.js:139:32) at DerivedLogger._transform (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\winston\lib\winston\logger.js:305:12) at DerivedLogger.Transform._read (C:\Users\justi\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\winston\node_modules\readable-stream\lib_stream_transform.js:177:10)

我完全坚持了这一点,我一直在寻找一个小时,而且我之前从未遇到过这种失败,所以我不知道Firebase发生了什么.预先感谢.

I'm completely stuck on this, I've been searching for an hour, and I've never had this fail for me before, so I don't know what's going on with firebase. Thanks in advance.

推荐答案

对于以这种方式出现的其他应用程序,我有此确切的错误消息和堆栈跟踪.我正在尝试运行firebase deploy --except functions,同时遵循以下代码实验室步骤.

For others that come this way, I had this exact error message and stack trace. I was attempting to run firebase deploy --except functions while following this code lab step.

对我来说,解决方法只是停止在本地停止提供Firebase应用程序以进行调试.

For me the fix was simply to stop serving the firebase app locally for debug.

完成此操作后,无需重新启动,只需回到另一个终端并提交deploy命令即可.

Once I had done this, no reboot, just back in the other terminal and submit the deploy command and it worked fine.

代码实验室让您执行此操作,然后在更改应用程序的各个部分时将其保留在本地,但是我不知道是什么原因导致winston以这种方式发生冲突.

The code lab gets you to do this and then leave it served locally while changing various parts of the app, but I have no idea what caused winston to conflict this way.

这篇关于Firebase无法部署的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆