执行firebase deploy部署初始Cloud Functions时ELIFECYCLE报错
firebase deploy 部署初始Cloud Functions代码报错 基础信息
- 触发动作:执行
firebase deploy部署由firebase init自动生成的Cloud Functions初始代码 - 前置状态:项目内
index.ts源代码、其余工程配置及业务内容均未做任何手动修改
中文翻译版完整报错日志
执行命令:npm --prefix "$RESOURCE_DIR" run build > functions@ build /Users/eliasdolinsek/development/firebase-development/functions > tsc 编译启动 ../../../node_modules/@types/fs-extra/index.d.ts 第195行第87列 - *错误码 TS2694*:命名空间 "fs" 未导出成员 'Dir' 195 export function opendir(path: string, cb: (err: NodeJS.ErrnoException | null, dir: fs.Dir) => void): void; ~~~ ../../../node_modules/@types/fs-extra/index.d.ts 第198行第17列 - *错误码 TS2694*:命名空间 "fs" 未导出成员 'OpenDirOptions' 198 options: fs.OpenDirOptions, ~~~~~~~~~~~~~~ ../../../node_modules/@types/fs-extra/index.d.ts 第199行第53列 - *错误码 TS2694*:命名空间 "fs" 未导出成员 'Dir' 199 cb: (err: NodeJS.ErrnoException | null, dir: fs.Dir) => void, ~~~ ../../../node_modules/@types/fs-extra/index.d.ts 第201行第52列 - *错误码 TS2694*:命名空间 "fs" 未导出成员 'OpenDirOptions' 201 export function opendir(path: string, options?: fs.OpenDirOptions): Promise<fs.Dir>; ~~~~~~~~~~~~~~ ../../../node_modules/@types/fs-extra/index.d.ts 第201行第80列 - *错误码 TS2694*:命名空间 "fs" 未导出成员 'Dir' 201 export function opendir(path: string, options?: fs.OpenDirOptions): Promise<fs.Dir>; ~~~ 累计发现5处编译错误。 npm 错误!错误码 *ELIFECYCLE* npm 错误!进程退出码 2 npm 错误!functions@ build 脚本执行的命令为 `tsc` npm 错误!进程退出状态为 2 npm 错误!functions@ build 脚本执行失败 npm 错误!该问题通常并非npm本身故障导致,可查看上方的日志输出定位原因 npm 错误!本次运行的完整日志可在以下路径查看: npm 错误! /Users/eliasdolinsek/.npm/_logs/2021-01-26T13_18_50_649Z-debug.log 错误:functions 预部署环节报错:命令执行终止,返回非零退出码2
内容的提问来源于stack exchange,提问作者eli2003
相关产品推荐
相关产品推荐

