Npm Can';t为Hardhat项目安装软件包

Npm Can';t为Hardhat项目安装软件包,npm,ethereum,hardhat,Npm,Ethereum,Hardhat,我想创建一个使用Hardhat环境的项目。我试着从他们的角度来学习教程。在这里,我们有一个安装所有必需软件包的提示。不幸的是,当我运行npm安装--save dev@nomiclabs/hardhat-waffle-ethereum-waffle-chai@nomiclabs/hardhat-ethers-ethers时,首先我会看到很多关于不推荐使用的软件包的警告,然后 npm ERR! code ENOENT npm ERR! syscall spawn git npm ERR! path

我想创建一个使用Hardhat环境的项目。我试着从他们的角度来学习教程。在这里,我们有一个安装所有必需软件包的提示。不幸的是,当我运行
npm安装--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)
我尝试过在选择了特定版本的情况下安装以太坊华夫格等。它总是以相同的错误结束


你知道如何克服它吗?为什么在安装过程中有这么多软件包被弃用?这是不是已经过时了,我应该以其他方式启动hardhat项目?

很可能你没有安装git