question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

tput: No value for $TERM and no -T specified

See original GitHub issue

Current behavior

When running Cypress in CI environments, $TERM is unset and thus we always get the following error/warning:

tput: No value for $TERM and no -T specified

Desired behavior

There should be no warning message. I’ve looked at this StackOverflow answer and it seems like it should be fixed here in Cypress:

You can either manually assign a TERM value to the cron job (likely dumb or something similar to that) or (and this is likely the better solution) you can find out what is calling tput and remove that call.

You should skip the tput call when running in CI environments where TERM isn’t specified.

Test code to reproduce

See this GitHub action run or all of these issues that also show the same warning message (related especially to #5571 which mentions this same warning message).

You should be able to reproduce just by running cypress run in a CI environment.

Versions

Cypress: 6.8.0 Browser: N/A CI: GitHub Actions (but also appears in Jenkins and CircleCI)

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
louzena-inshurcommented, Apr 14, 2022

Hi, was this solved? We’re getting the same error in CI and unable to run our Cypress tests

1reaction
jennifer-shehanecommented, Mar 30, 2021

We would also be open to a PR if someone tracks this down and can test/remove it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"tput: No value for $TERM and no -T specified " error logged ...
If no $TERM variable is set, cron will emit a tput: No value for $TERM and no -T specified error in the mail...
Read more >
linux + tput: No value for $TERM and no -T specified
I use in my bash script the tput command ...
Read more >
No value for $TERM and no -T specified - Ask Ubuntu
The easiest thing you can do to fix it is, as you suggested, to only call tput if $TERM is set. Share.
Read more >
SSH session: "tput: No value for $TERM and no -T specified
A SSH command line that specifies a remote command will normally run in "non-interactive mode". One of the consequences is that no pseudo-TTY ......
Read more >
linux + tput: No value for $TERM and no -T specified
call your shell with the following syntax: ssh user@127.0.0.1 "TERM=xterm script.sh". or ssh user@127.0.0.1 "export TERM=xterm ; script.sh".
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found