更新firebase-admin

时间:2019-05-13 13:50:06

标签: node.js firebase express google-cloud-functions firebase-admin

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

我尝试重新安装节点模块,重新安装firebase和firebase admin,以admin身份运行serve命令,并添加   “引擎”: {     “节点”:“ 8.15.0”   }, 到我的package.json文件

完整错误:

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

0 个答案:

没有答案