【问题标题】:Travis with Firebase deploy TypeError: this.stream.clearLine is not a functionTravis 与 Firebase 部署 TypeError:this.stream.clearLine 不是函数
【发布时间】:2017-06-24 12:51:57
【问题描述】:

我正在尝试使用 Travis 构建和部署 NodeJs + Python 应用程序。

这大概是文件夹结构(所有东西都属于同一个repo)

main/
├── angular2-client/
│   ├── dist/
│   ├── node_modules/
│   └── ...
├── django-server/
│    ├── server/
│    ├── manage.py
│    └── ...
├── .travis.yml
└── requirements.txt

这是.travis.yml 文件

language: python
python:
  - "3.4"
sudo: required
before_install:
  - nvm install node
  - npm --version
install:
  - cd ./angular2-client
  - npm install
  - cd ..
  - pip install -r requirements.txt
before_script:
  - npm install -g firebase-tools
script:
  - cd ./angular2-client && npm run build
after_success:
  - firebase deploy --token $FIREBASE_API_TOKEN
before_deploy:
  - cd ..
  - cd ./django-server
deploy:
  provider: heroku
  api_key: $HEROKU_API_KEY
  app: glacial-shore-18891

运行firebase deploy --token $FIREBASE_API_TOKEN 行后,Travis 抛出错误**FIREBASE WARNING: Exception was thrown by user callback. TypeError: this.stream.clearLine is not a function** 并且部署到 Firebase 失败。

我也遇到了 Heroku 部署的问题,但我稍后会处理。

关于如何解决它的任何提示?

谢谢

【问题讨论】:

  • 从今天的版本开始,我在 Firebase + Travis 上遇到了同样的问题,而昨天这个问题不存在。

标签: firebase travis-ci


【解决方案1】:

刚刚遇到了同样的问题,似乎某些进度条出现了问题。尝试在非交互模式下禁用它:

after_success:
  - firebase deploy --token $FIREBASE_TOKEN --non-interactive

解决了我的问题,希望对你有帮助。

【讨论】:

    猜你喜欢
    • 2016-03-23
    • 2017-03-24
    • 1970-01-01
    • 1970-01-01
    • 2021-04-21
    • 2019-06-13
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多