cpan error: Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call didn't work

4k Views Asked by At

ActiveState Perl - 5.26 on Windows 10 - 64 bit.

When I am trying to launch cpan from CMD - I see the following error:

C:\Users\orenm>cpan
Unable to get Terminal Size. The Win32 GetConsoleScreenBufferInfo call didn't work. The COLUMNS and LINES environment variables didn't work. at C:\Perl64\lib/Term/ReadLine/readline.pm line 410. 

Why does it happen? What shall I do with it?

1

There are 1 best solutions below

2
Bill Smith On

It's trying to figure out your terminals size. You can use a 'dumb' terminal.

set TERM=dumb

will eliminate the warning.