安装松露时收到很多警告和错误

I got many warning and error when installing truffle

我运行代码'npm install -g truffle'也试过'npm install truffle', 但结果是一样的,这是我得到的警告和错误。 当我尝试安装 truffle 时,它​​向我显示。我不知道如何解决它。

示例:

npm WARN deprecated testrpc@0.0.1: testrpc has been renamed to ganache-cli, please use this package from now on.
npm WARN deprecated safe-event-emitter@1.0.1: Renamed to @metamask/safe-event-emitter
npm WARN deprecated mkdirp-promise@5.0.1: This package is broken and no longer maintained. 'mkdirp' itself supports promises now, please switch to that.

他们正在努力将 webpack init 样板转移到导致折旧错误的 Box 结构,只需将您的节点更新到 v16 或 v17 LTS 并 运行 安装以下内容:

npx truffle unbox webpack