我尝试启动一个新的Node项目并安装web3库这个错误发生了

问题描述 投票:0回答:0

npm init
之后:

$ npm i web3

npm WARN deprecated [email protected]: This package is broken and no longer maintained. 'mkdirp' itself supports promises now,
please switch to that.
npm WARN deprecated [email protected]: this library is no longer supported
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module
npm WARN deprecated [email protected]: This module has been superseded by the multiformats module

added 334 packages, and audited 335 packages in 57s

52 packages are looking for funding
run `npm fund` for details

6 moderate severity vulnerabilities

To address all issues, run:
npm audit fix

Run `npm audit` for details.

==> npm i web3 npm WARN deprecated [email protected]:此包已损坏且不再维护。 'mkdirp' 本身现在支持承诺, 请切换到那个。 npm WARN 已弃用 [email protected]:不再支持此库 npm WARN deprecated [email protected]:此模块已被 multiformats 模块取代 npm WARN deprecated [email protected]:请升级到版本 7 或更高版本。旧版本可能会在某些情况下使用 Math.random(),这是众所周知的问题。有关详细信息,请参阅https://v8.dev/blog/math-random。 npm WARN deprecated [email protected]:请求已被弃用,请参阅请求/请求#3142 npm WARN deprecated [email protected]:此模块已被 multiformats 模块取代 npm WARN deprecated [email protected]:此模块已被 multiformats 模块取代 npm WARN deprecated [email protected]:此模块已被多格式模块取代

在 57 秒内添加了 334 个包,并审计了 335 个包

52包正在寻找资金 运行 npm fund 了解详情

6 个中等严重程度的漏洞

要解决所有问题,请运行: npm 审计修复

运行 npm audit 了解详情。 PS D: ields\web\project2>npm audit fix --force 将安装 [email protected],这是一个重大变化 节点模块/请求 服务 * 取决于易受攻击的请求版本 节点模块/服务 以太坊 0.1.24 - 0.1.29 取决于易受攻击的 servify 版本 群-js >=0.1.36 取决于易受攻击的 eth-lib 版本 node_modules/swarm-js web3-bzz * 取决于易受攻击的 swarm-js 版本 node_modules/web3-bzz web3 1.0.0-beta.1 - 3.0.0-rc.0 取决于易受攻击的 web3-bzz 版本 节点模块/web3

6 个中等严重程度的漏洞

要解决所有问题(包括重大更改),请运行: npm 审计修复 --force PS D: ields\web\project2> npm audit fix --force npm WARN 使用 --force 建议的保护已禁用。 npm WARN audit 将 web3 更新到 0.20.7,这是一个 SemVer 重大变化。 错误!代码ENOENT 错误!系统调用生成 git 错误!路径混帐 错误!错误号-4058 错误! enoent 发生未知的 git 错误 错误! enoent 这与 npm 无法找到文件有关。 错误!恩恩

我预计该项目将正确启动,但当我尝试卸载时出现错误。

node.js web3
© www.soinside.com 2019 - 2024. All rights reserved.