【问题标题】:Terminal output corrupted [npm - eth-gas-reporter]终端输出损坏 [npm - eth-gas-reporter]
【发布时间】:2022-01-10 16:58:33
【问题描述】:

Terminal output image - 一些随机字符,而不是: eth gas reporter output table

这是使用 gas-reporter 模块运行 npx hardhat test 时的输出

操作系统:Mac osx 12.0.1 终端模拟器:Iterm2 字体:Hack Nerd 字体 外壳:zsh

还使用其他字体、其他终端仿真器和 shell 进行了测试。 运行 npx hardhat test > out.txt - 将输出重定向到文件也确实包含损坏的数据

我很确定这在 Linux 上正确显示 我使用相同的终端应用程序(Iterm2)连接到 linux 服务器并运行相同的命令,它正确显示:

【问题讨论】:

  • 看起来你正在向终端输出二进制数据。见this question
  • 不,它不是二进制文件,我使用 ssh(同一终端)连接到 linux 服务器并运行该命令,一切看起来都很好@JordanBonecutter

标签: npm terminal blockchain ethereum hardhat


【解决方案1】:

通过将 hardhat-eth-gas-reporter npm 模块更新到 1.0.7 修复

【讨论】:

    猜你喜欢
    • 2021-08-17
    • 1970-01-01
    • 2021-11-21
    • 1970-01-01
    • 2021-05-21
    • 2019-12-24
    • 1970-01-01
    • 2012-12-08
    • 2019-03-11
    相关资源
    最近更新 更多