Firebase 服务器抱怨 firebase-admin 已安装但未显示

Firebase Server complains that firebase-admin is installed but not seen

我在我的本地机器上尝试了 运行ning firebase serve 并低于警告

The Cloud Functions emulator requires the module "firebase-admin" to be installed. This package is in your package.json, but it's not available. You probably need to run "npm install" in your functions directory.

我从之前的 SO 和 github

中尝试过的

SO 和 github 引用但未解决我的问题

Im having trouble while serving or deploying Firebase Hosting Functions

https://github.com/firebase/firebase-tools/issues/1452

PS: 不能降级到版本 6。

我是 运行ning 节点 8 和 "firebase-admin":“^8.6.0”,如 package.json

所示

在 Hiranya Jayathilaka 上面的评论的帮助下,我解决了这个问题。我将节点从 8.5.x 升级到 8.16.2 和 运行 npm install firebase-tools,一切正常。