先在项目本地安装
hardhat
npm install --save-dev hardhat
再运行试试