无法为 Hardhat 项目安装软件包

问题描述

我想使用 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 是否已过时,我应该以其他方式启动安全帽项目吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...