cpan 错误:无法获取终端大小。Win32 GetConsoleScreenBufferInfo 调用不起作用

Ore*_*rer 5 perl cmd cpan activeperl

ActiveState Perl - Windows 10 上的 5.26 - 64 位。

当我尝试从 CMD 启动 cpan 时 - 我看到以下错误:

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. 
Run Code Online (Sandbox Code Playgroud)

为什么会发生?我该怎么办?

小智 8

它正在尝试计算出您的终端尺寸。您可以使用“哑”终端。

set TERM=dumb
Run Code Online (Sandbox Code Playgroud)

将消除警告。