gpt4 book ai didi

firebase deploy 给出 "path"错误

转载 作者:行者123 更新时间:2023-12-04 08:20:39 26 4
gpt4 key购买 nike

启动我的firebase应用程序后

firebase init

我试图部署它
firebase deploy

但我得到这个错误
    === Deploying to 'fugis-auto-services-website'...

i deploying database, storage, functions, hosting

Error: An unexpected error has occurred.

所以我查看了firebase-debug.log,这就是它所说的
Tue May 01 2018 19:52:19 GMT-0500 (CDT)
[debug] [2018-05-02T00:52:19.967Z] <<< HTTP RESPONSE 200
[info]
[info] === Deploying to 'fugis-auto-services-website'...
[info]
[info] i deploying database, storage, functions, hosting
[debug] [2018-05-02T00:52:20.266Z] TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at assertPath (path.js:39:11)
at Object.join (path.js:1157:7)
at Config.path (/Users/vanessaflores/.nvm/versions/node/v10.0.0/lib/node_modules/firebase-tools/lib/config.js:166:37)
at /Users/vanessaflores/.nvm/versions/node/v10.0.0/lib/node_modules/firebase-tools/lib/deploy/lifecycleHooks.js:68:38
at _chain (/Users/vanessaflores/.nvm/versions/node/v10.0.0/lib/node_modules/firebase-tools/lib/deploy/index.js:26:38)
at /Users/vanessaflores/.nvm/versions/node/v10.0.0/lib/node_modules/firebase-tools/lib/deploy/index.js:29:14
at process._tickCallback (internal/process/next_tick.js:178:7)
[error]
[error] Error: An unexpected error has occurred.

我不确定如何进行。

最佳答案

我可以通过重新初始化 firebase 函数来解决这个问题:

firebase init functions

您可能需要先更新您的 firebase-tools:
npm install -g firebase-tools

并备份您现有的功能目录。

关于firebase deploy 给出 "path"错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50125826/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com