lesson 7 hardhat #2159
Answered
by
othaime-en
samuel33333334455666
asked this question in
Q&A
lesson 7 hardhat
#2159
-
Samuel@DESKTOP-DEM50G5 MINGW64 ~/Desktop/hard-hat_fund-me-fcc (master)
$ npx hardhat
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
An unexpected error occurred:
Error: Cannot find module '@nomicfoundation/hardhat-toolbox'
Require stack:
- C:\Users\Samuel\Desktop\hardhat.config.js
- C:\Users\Samuel\Desktop\hard-hat_fund-me-fcc\node_modules\hardhat\internal\core\config\config-loading.js
- C:\Users\Samuel\Desktop\hard-hat_fund-me-fcc\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.<anonymous> (C:\Users\Samuel\Desktop\hardhat.config.js:1:1)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159: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: [
'C:\\Users\\Samuel\\Desktop\\hardhat.config.js',
'C:\\Users\\Samuel\\Desktop\\hard-hat_fund-me-fcc\\node_modules\\hardhat\\internal\\core\\config\\config-loading.js',
'C:\\Users\\Samuel\\Desktop\\hard-hat_fund-me-fcc\\node_modules\\hardhat\\internal\\cli\\cli.js'
]
}
Samuel@DESKTOP-DEM50G5 MINGW64 ~/Desktop/hard-hat_fund-me-fcc (master)
$
Samuel@DESKTOP-DEM50G5 MINGW64 ~/Desktop/hard-hat_fund-me-fcc (master)
$ npm i --save-dev @nomicfoundation/hardhat-toolbox
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
up to date, audited 884 packages in 5s
119 packages are looking for funding
run `npm fund` for details
8 moderate severity vulnerabilities
To address issues that do not require attention, run:
npm audit fix
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
Samuel@DESKTOP-DEM50G5 MINGW64 ~/Desktop/hard-hat_fund-me-fcc (master)
$ npx hardhat
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
An unexpected error occurred:
Error: Cannot find module '@nomicfoundation/hardhat-toolbox'
Require stack:
- C:\Users\Samuel\Desktop\hardhat.config.js
- C:\Users\Samuel\Desktop\hard-hat_fund-me-fcc\node_modules\hardhat\internal\core\config\config-loading.js
- C:\Users\Samuel\Desktop\hard-hat_fund-me-fcc\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.<anonymous> (C:\Users\Samuel\Desktop\hardhat.config.js:1:1)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159: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: [
'C:\\Users\\Samuel\\Desktop\\hardhat.config.js',
'C:\\Users\\Samuel\\Desktop\\hard-hat_fund-me-fcc\\node_modules\\hardhat\\internal\\core\\config\\config-loading.js',
'C:\\Users\\Samuel\\Desktop\\hard-hat_fund-me-fcc\\node_modules\\hardhat\\internal\\cli\\cli.js'
]
}
Samuel@DESKTOP-DEM50G5 MINGW64 ~/Desktop/hard-hat_fund-me-fcc (master)
$ npm install --save-dev @nomicfoundation/hardhat-toolbox
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
up to date, audited 884 packages in 21s
119 packages are looking for funding
run `npm fund` for details
8 moderate severity vulnerabilities
To address issues that do not require attention, run:
npm audit fix
Some issues need review, and may require choosing
a different dependency.
Run `npm audit` for details.
Samuel@DESKTOP-DEM50G5 MINGW64 ~/Desktop/hard-hat_fund-me-fcc (master)
$ npx hardhat
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
An unexpected error occurred:
Error: Cannot find module '@nomicfoundation/hardhat-toolbox'
Require stack:
- C:\Users\Samuel\Desktop\hardhat.config.js
- C:\Users\Samuel\Desktop\hard-hat_fund-me-fcc\node_modules\hardhat\internal\core\config\config-loading.js
- C:\Users\Samuel\Desktop\hard-hat_fund-me-fcc\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.<anonymous> (C:\Users\Samuel\Desktop\hardhat.config.js:1:1)
at Module._compile (node:internal/modules/cjs/loader:1105:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159: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: [
'C:\\Users\\Samuel\\Desktop\\hardhat.config.js',
'C:\\Users\\Samuel\\Desktop\\hard-hat_fund-me-fcc\\node_modules\\hardhat\\internal\\core\\config\\config-loading.js',
'C:\\Users\\Samuel\\Desktop\\hard-hat_fund-me-fcc\\node_modules\\hardhat\\internal\\cli\\cli.js'
]
}
Samuel@DESKTOP-DEM50G5 MINGW64 ~/Desktop/hard-hat_fund-me-fcc (master)
$ npm hardhat
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
Unknown command: "hardhat"
To see a list of supported npm commands, run:
npm help
Samuel@DESKTOP-DEM50G5 MINGW64 ~/Desktop/hard-hat_fund-me-fcc (master) |
Beta Was this translation helpful? Give feedback.
Answered by
othaime-en
Aug 29, 2022
Replies: 1 comment 9 replies
-
Hey @samuel33333334455666 run the following command and see if it fixes your issue
|
Beta Was this translation helpful? Give feedback.
9 replies
Answer selected by
samuel33333334455666
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @samuel33333334455666 run the following command and see if it fixes your issue