作者热门文章
- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
每当我尝试将文件部署到 Firebase 托管时,我都会收到以下错误:
[2018-11-01T09:36:18.073Z] <<< HTTP RESPONSE BODY undefined
[2018-11-01T09:36:18.075Z] TypeError: Cannot read property 'error' of undefined
at module.exports (C:\Users\dilzy\AppData\Roaming\npm\node_modules\firebase-tools\lib\responseToError.js:10:13)
at Request._callback (C:\Users\dilzy\AppData\Roaming\npm\node_modules\firebase-tools\lib\api.js:47:25)
at Request.self.callback (C:\Users\dilzy\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\request\request.js:185:22)
at Request.emit (events.js:182:13)
at Request.EventEmitter.emit (domain.js:442:20)
at Request.<anonymous> (C:\Users\dilzy\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\request\request.js:1157:10)
at Request.emit (events.js:182:13)
at Request.EventEmitter.emit (domain.js:442:20)
at IncomingMessage.<anonymous> (C:\Users\dilzy\AppData\Roaming\npm\node_modules\firebase-tools\node_modules\request\request.js:1079:12)
at Object.onceWrapper (events.js:273:13)
Error: An unexpected error has occurred.
不确定为什么会发生这种情况,并且通常部署工作正常,预计到现在为止。谢谢
最佳答案
更新 firebase-tools
为我修复了它:npm install -g firebase-tools
关于node.js - 火力地堡,类型错误 : Cannot read property 'error' of undefined,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53098684/
我是一名优秀的程序员,十分优秀!