小编Tui*_*Tui的帖子

Firebase 功能部署失败,并出现“缺少”依赖项错误

我在尝试部署 Firebase 函数时遇到错误。尽管多次删除node_modulespackage-lock.json、运行npm install和执行,构建过程仍然失败并出现以下错误:firebase deploy --only functions

Build failed: ...regex-range@5.0.1 from lock file
npm ERR! Missing: brace-expansion@1.1.11 from lock file
npm ERR! Missing: balanced-match@1.0.2 from lock file
npm ERR! Missing: concat-map@0.0.1 from lock file
npm ERR! Missing: mimic-fn@2.1.0 from lock file
npm ERR! Missing: p-limit@2.3.0 from lock file
npm ERR! Missing: error-ex@1.3.2 from lock file
npm ERR! Missing: json-parse-even-better-errors@2.3.1 from lock file
npm ERR! Missing: lines-and-columns@1.2.4 from lock file
npm ERR! Missing: is-arrayish@0.2.1 …
Run Code Online (Sandbox Code Playgroud)

node.js npm firebase firebase-tools google-cloud-functions

6
推荐指数
1
解决办法
2587
查看次数