EatTheBlocks Forum

NFT101 Error running code

Error running Deploy Mario
Error: Cannot find module ‘dotevn’

I have ran
npm install dotenv
npm install dotenv --save
npm install dotenv @latest
npm install --dotenv-extended

I get the same error each time
Karls-MBP:nft krlmoorejr$ npx hardhat run scripts/deploy.js --network mumbai
An unexpected error occurred:

Error: Cannot find module ‘dotevn’
Require stack:

  • /Users/krlmoorejr/nft/hardhat.config.js
  • /Users/krlmoorejr/nft/node_modules/hardhat/internal/core/config/config-loading.js
  • /Users/krlmoorejr/nft/node_modules/hardhat/internal/cli/cli.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object. (/Users/krlmoorejr/nft/hardhat.config.js:2:1)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions…js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
    code: ‘MODULE_NOT_FOUND’,
    requireStack: [
    ‘/Users/krlmoorejr/nft/hardhat.config.js’,
    ‘/Users/krlmoorejr/nft/node_modules/hardhat/internal/core/config/config-loading.js’,
    ‘/Users/krlmoorejr/nft/node_modules/hardhat/internal/cli/cli.js’
    ]
    }