无法从控制台初始化新的firebase项目

时间:2018-06-04 19:19:37

标签: node.js firebase npm firebase-cli

我正在尝试在firebase上托管我的webapp,目前我遇到了这个问题:

我的操作顺序:

(in root) > npm install -g firebase-tools
> firebase login
> $ npm run build
> cd dist
> firebase init iq18
> (select my desired app in FB dropdown)
> returns: Error: An unexpected error has occurred.

无论我尝试什么,从my / dist目录运行init之后,我都无法将其实际部署到firebase。日志中的完整错误:

[info] 
=== Project Setup
[info] 
[info] First, let's associate this project directory with a Firebase project.
[info] You can create multiple project aliases by running firebase use --add, 
[info] but for now we'll just set up a default project.
[info] 
[debug] [2018-06-04T19:03:39.456Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects  

 Mon Jun 04 2018 15:03:39 GMT-0400 (EDT)
[debug] [2018-06-04T19:03:39.812Z] <<< HTTP RESPONSE 200
[info] 
=== Iq17 Setup
[debug] [2018-06-04T19:03:42.715Z] TypeError: features[nextFeature] is not a function
    at init (/usr/local/lib/node_modules/firebase-tools/lib/init/index.js:13:49)
    at /usr/local/lib/node_modules/firebase-tools/lib/init/index.js:14:14
    at process._tickDomainCallback (internal/process/next_tick.js:135:7)
[error] 
[error] Error: An unexpected error has occurred.

我尝试过的事情:

  1. 删除了我的/ dist目录并重建了应用
  2. 退出firebase并重新登录
  3. 从firebase帐户
  4. 删除了占位符应用

    我不太清楚我还能做些什么来解决这个部署问题。

0 个答案:

没有答案