首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >更新firebase-admin后的EACCES错误

更新firebase-admin后的EACCES错误
EN

Stack Overflow用户
提问于 2019-05-13 13:50:06
回答 1查看 197关注 0票数 1

我刚刚更新了firebase管理员,当我尝试访问我的firebase函数代码时,在运行firebase服务之后,我会得到EACCES错误。我提到在更新之前,代码运行良好。

我尝试重新安装节点模块,重新安装firebase和firebase管理,将serve命令作为admin运行,并在我的package.json文件中添加"engines":{“节点”:"8.15.0“}

完全错误:

代码语言:javascript
复制
i  functions: Beginning execution of "api"
!  Default "firebase-admin" instance created!
>  events.js:183
>        throw er; // Unhandled 'error' event
>        ^
> 
>  Error: listen EACCES C:\Users\Berce\AppData\Local\Temp\firebase_emulator_invocation_2608.sock
>      at Server.setupListenHandle [as _listen2] (net.js:1343:19)
>      at listenInCluster (net.js:1401:12)
>      at Server.listen (net.js:1496:5)
>      at Function.listen (C:\Program Files (x86)\Nodist\bin\node_modules\firebase-tools\node_modules\express\lib\application.js:618:24)
>      at Promise (C:\Program Files (x86)\Nodist\bin\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:359:46)
>      at new Promise (<anonymous>)
>      at C:\Program Files (x86)\Nodist\bin\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:332:15
>      at Generator.next (<anonymous>)
>      at C:\Program Files (x86)\Nodist\bin\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:7:71
>      at new Promise (<anonymous>)
>      at __awaiter (C:\Program Files (x86)\Nodist\bin\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:3:12)
>      at ProcessHTTPS (C:\Program Files (x86)\Nodist\bin\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:329:12)
>      at C:\Program Files (x86)\Nodist\bin\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:523:23
>      at Generator.next (<anonymous>)
>      at fulfilled (C:\Program Files (x86)\Nodist\bin\node_modules\firebase-tools\lib\emulator\functionsEmulatorRuntime.js:4:58)
>      at <anonymous>
>      at process._tickCallback (internal/process/next_tick.js:189:7)
>      at Function.Module.runMain (module.js:696:11)
>      at startup (bootstrap_node.js:204:16)
>      at bootstrap_node.js:625:3
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2021-12-21 18:43:44

多亏了这些评论,我发现这个问题已经被火力小组发现了。在windows上复制,并且没有已知的修复方法。所以现在我不得不后退。

谢谢!

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/56113806

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档