无法在 Ubuntu 上使用 tronbox cli 初始化 tronbox

问题描述

我正在尝试在 TRON 中处理智能合约并从 https://developers.tron.network/docs/tron-box-user-guide#initialize-a-tron-box-project 之后的 tronBox init 开始

在我的 Ubuntu 上使用 npm 安装 tronBox cli 后,我尝试初始化该项目,但它抛出了错误。 我附上了截图。

enter image description here

试图找到解决方案,但没有找到合适的解决方案。 如果有人以前遇到过这种情况,请告诉我发生这种情况的原因。

谢谢。

解决方法

如果您使用 nvm for Node,请安装 Node 8:

nvm install v8.16.0
nvm use v8.16.0