Install hardhat with serveral stuffs:
npm install --save-dev hardhat @nomiclabs/hardhat-waffle \
ethereum-waffle chai @nomiclabs/hardhat-ethers ethers ts-node \
typescript chai @types/node @types/mocha @types/chai
Run geth light mode:
geth --mainnet --syncmode light --http --http.corsdomain "*" \
--http.port 8546 --ws --ws.port 8547 --ws.origins "*"