Hardhat installation #2086
Unanswered
samuel33333334455666
asked this question in
Q&A
Replies: 2 comments 11 replies
-
trying reinstalling hardhat ( yarn add --dev hardhat) |
Beta Was this translation helpful? Give feedback.
6 replies
-
@samuel33333334455666 run |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Samuel@DESKTOP-DEM50G5 MINGW64 ~/Desktop/hardhat-simple-storage-fcc (master)
$ yarn hardhat
An unexpected error occurred:
Error: Your application tried to access @nomicfoundation/hardhat-toolbox, but it isn't declared in your dependencies; this makes the require call ambiguous and unsound.
Required package: @nomicfoundation/hardhat-toolbox (via "@NomicFoundation\hardhat-toolbox")
Required by: C:\Users\Samuel\Desktop\
Require stack:
at Function.require$$0.Module._resolveFilename (C:\Users\Samuel\Desktop\hardhat-simple-storage-fcc.pnp.cjs:12582:13)
at Function.require$$0.Module._load (C:\Users\Samuel\Desktop\hardhat-simple-storage-fcc.pnp.cjs:12436:42)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object. (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 Object.require$$0.Module._extensions..js (C:\Users\Samuel\Desktop\hardhat-simple-storage-fcc.pnp.cjs:12626:33)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.require$$0.Module._load (C:\Users\Samuel\Desktop\hardhat-simple-storage-fcc.pnp.cjs:12466:14)
Samuel@DESKTOP-DEM50G5 MINGW64 ~/Desktop/hardhat-simple-storage-fcc (master)
$ npx hardhat
npm WARN config global
--global
,--local
are deprecated. Use--location=global
instead.Error HH12: Trying to use a non-local installation of Hardhat, which is not supported.
Please install Hardhat locally using npm or Yarn, and try again.
For more info go to https://hardhat.org/HH12 or run Hardhat with --show-stack-traces
Samuel@DE
Beta Was this translation helpful? Give feedback.
All reactions