3

我想使用 Hardhat 环境创建一个项目。我已经尝试从他们身边遵循https://hardhat.org/getting-started/教程。在那里,我们有一个提示来安装所有必需的软件包。不幸的是,当我npm install --save-dev @nomiclabs/hardhat-waffle ethereum-waffle chai @nomiclabs/hardhat-ethers ethers第一次运行时,我可以看到很多关于已弃用软件包的警告,然后

npm ERR! code ENOENT
npm ERR! syscall spawn git
npm ERR! path git
npm ERR! errno -4058
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t https://github.com/ethereumjs/ethereumjs-abi.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\(path)

我试过安装ethereum-waffle选择的特定版本等。它总是以同样的错误结束。

你知道如何克服它吗?为什么在安装过程中不推荐使用这么多软件包?这是getting-started过时的,我应该以其他方式开始安全帽项目吗?

4

0 回答 0