-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
t2 update crashes upon downloading files #1044
Comments
Hm, we've gotten crash reports for this issue before. @rwaldron I think this PR fixes the issue by checking if stderr is a TTY before We can recreate this error by forcing stdout to be a non-TTY. Save as
Then run
|
What shell/terminal/command-line program are you using? |
That's the version on the board, not your local Node.js |
Running into an issue with the t2 update process.
Currently on:
t2-cli: 0.1.0.
t2-firmware: 0.0.13.
Node: 4.4.3 (<- this number stuck even when I upgraded node to 4.6.0).
Output below:
$ t2 update
INFO Looking for your Tessel...
INFO Connected to LilAhmy.
INFO New firmware version found...0.0.16
INFO Updating LilAhmy to latest version (0.0.16)...
INFO Downloading files...
ERR! Detected CLI crash [TypeError: this.stream.clearLine is not a function] TypeError: this.stream.clearLine is not a function
ERR! at ProgressBar.terminate (C:\Users\afhaq\AppData\Roaming\npm\node_modules\t2-cli\node_modules\progress\lib\node-progress.js:177:17)
ERR! at ProgressBar.tick (C:\Users\afhaq\AppData\Roaming\npm\node_modules\t2-cli\node_modules\progress\lib\node-progress.js:91:10)
ERR! at IncomingMessage. (C:\Users\afhaq\AppData\Roaming\npm\node_modules\t2-cli\lib\update-fetch.js:182:13)
ERR! at emitOne (events.js:82:20)
ERR! at IncomingMessage.emit (events.js:169:7)
ERR! at IncomingMessage.Readable.read (_stream_readable.js:368:10)
ERR! at flow (_stream_readable.js:759:26)
ERR! at Gunzip. (_stream_readable.js:616:7)
ERR! at emitNone (events.js:67:13)
ERR! at Gunzip.emit (events.js:166:7)
INFO Download complete!
ERR! TypeError: Cannot read property 'length' of undefined
The text was updated successfully, but these errors were encountered: