问题描述
我想使用 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 (将#修改为@)