Установите зависимости Openzeppelin для Hardhat Eviloment
require('@openzeppelin/hardhat-upgrades');
Faithful Flamingo
require('@openzeppelin/hardhat-upgrades');
$ npm install --save-dev @openzeppelin/hardhat-upgrades
$ npm install --save-dev @nomiclabs/hardhat-ethers ethers # peer dependencies