我正在为Firebase编写我的第一个云函数,它需要firebase-tools模块。我通过将它添加到package.json文件中的依赖项并运行npm install来安装它。然后我尝试使用import * as tools from 'firebase-tools';导入它,但是我得到了以下错误:
无法找到模块“firebase-tools”的声明文件。'如果存在npm install @types&
我正在尝试部署一个firebase项目(函数/主机),在我的函数package.json中,我将引擎更改为节点12,因为我的一些其他包要求它至少是节点12 (以前是节点10)。当我尝试使用vscode进行部署时,会得到以下错误:
Error: package.json in functions directory has an engines field which is unsupportedNote that Node.js 6 is n