Van*_*res 8 firebase firebase-hosting firebase-cli
在启动我的Firebase应用后
firebase init
Run Code Online (Sandbox Code Playgroud)
我试图用
firebase deploy
Run Code Online (Sandbox Code Playgroud)
但是我得到这个错误
=== Deploying to 'fugis-auto-services-website'...
i deploying database, storage, functions, hosting
Error: An unexpected error has occurred.
Run Code Online (Sandbox Code Playgroud)
所以我看了看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.
Run Code Online (Sandbox Code Playgroud)
我不确定如何进行。
我可以通过重新初始化 firebase 函数来解决此问题:
firebase init functions
Run Code Online (Sandbox Code Playgroud)
您可能需要首先更新您的 firebase-tools:
npm install -g firebase-tools
Run Code Online (Sandbox Code Playgroud)
并备份现有的函数目录。
归档时间: |
|
查看次数: |
1987 次 |
最近记录: |