什么时候在托管服务器上安装 Firebase 函数的依赖项?在部署?

When are the dependencies of a Firebase Function installed on the hosting server? On deploy?

根据https://firebase.google.com/docs/functions/handle-dependencies

"If you are deploying through the Firebase CLI, the local node_modules folder is ignored, and you must specify your dependencies in package.json"

因此,package.json 中的依赖项是否安装在部署到托管服务器中?

Cloud Functions 将在部署后有效地 npm install 获取代码的所有依赖项,如 package.json 中指定的那样。