带有Firebase的Travis部署TypeError:this.stream.clearLine不是一个函数 [英] Travis with Firebase deploy TypeError: this.stream.clearLine is not a function

查看:214
本文介绍了带有Firebase的Travis部署TypeError:this.stream.clearLine不是一个函数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图建立&使用Travis部署一个NodeJs + Python应用程序。
$ b 这大约是文件夹结构(所有东西都属于同一个repo)

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

和这是 .travis.yml 文件

 语言:python 
蟒蛇:
- 3.4
sudo:必需
before_install:
- nvm安装节点
- npm --version
安装:
- 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
部署:
provider:heroku
api_key:$ HEROKU_API_KEY
app:glacial-shore-18891

在运行 firebase deploy --token $ FIREBASE_API_TOKEN 后,Travis抛出错误 ** FIREBASE WARNING:抛出异常用户回调。 TypeError:this.stream.clearLine不是函数** ,并且Firebase部署失败。



我遇到了Heroku的问题部署,但我会照顾这个。



任何提示如何解决它?



谢谢

解决方案

刚刚有同样的问题,似乎有一些进度栏正在发生一些问题。尝试在非交互模式下禁用它:

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

解决了我的问题,希望它能帮上忙。


I am trying to build & deploy a NodeJs + Python app with Travis.

This is approximately the folder structure (everything belongs to the same repo)

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

and this is the .travis.yml file

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

After running the line firebase deploy --token $FIREBASE_API_TOKEN Travis throws the error **FIREBASE WARNING: Exception was thrown by user callback. TypeError: this.stream.clearLine is not a function** and the deploy to Firebase fails.

I am having a problem with the Heroku deploy too, but I'll take care of that later.

Any hint on how to solve it?

Thanks

解决方案

Just had the same issue, it seems that some progress bar is making some issues. Try to disable it in non interactive mode:

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

It solved my issue, hope it helps.

这篇关于带有Firebase的Travis部署TypeError:this.stream.clearLine不是一个函数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆