Closed RomeDomeYome closed 2 years ago
Here is what the terminal shows when I install it
snyde_kyl@DESKTOP-QQCU554:~/hardhat-fundyoboi$ yarn hardhat
yarn run v1.22.19
warning package.json: No license field
error Command "hardhat" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
snyde_kyl@DESKTOP-QQCU554:~/hardhat-fundyoboi$ yarn add --dev "hardhat@^2.9.3"
yarn add v1.22.19
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > @typechain/hardhat@6.1.2" has unmet peer dependency "@ethersproject/abi@^5.4.7".
warning " > @typechain/hardhat@6.1.2" has unmet peer dependency "@ethersproject/providers@^5.4.7".
warning " > @typechain/hardhat@6.1.2" has unmet peer dependency "@typechain/ethers-v5@^10.1.0".
warning " > ts-node@10.9.1" has unmet peer dependency "@types/node@*".
warning " > @nomicfoundation/hardhat-toolbox@1.0.2" has unmet peer dependency "@ethersproject/abi@^5.4.7".
warning " > @nomicfoundation/hardhat-toolbox@1.0.2" has unmet peer dependency "@ethersproject/providers@^5.4.7".
warning " > @nomicfoundation/hardhat-toolbox@1.0.2" has unmet peer dependency "@types/chai@^4.2.0".
warning " > @nomicfoundation/hardhat-toolbox@1.0.2" has unmet peer dependency "@types/node@>=12.0.0".
warning " > @nomicfoundation/hardhat-toolbox@1.0.2" has unmet peer dependency "@typechain/ethers-v5@^10.1.0".
[4/4] Building fresh packages...
success Saved lockfile.
warning No license field
success Saved 76 new dependencies.
info Direct dependencies
└─ hardhat@2.10.1
info All dependencies
├─ @ethereumjs/block@3.6.3
├─ @ethereumjs/blockchain@5.5.3
├─ @ethereumjs/ethash@1.1.0
├─ @ethereumjs/vm@5.9.3
├─ @metamask/eth-sig-util@4.0.1
├─ @sentry/core@5.30.0
├─ @sentry/node@5.30.0
├─ @sentry/tracing@5.30.0
├─ @types/abstract-leveldown@7.2.0
├─ @types/level-errors@3.0.0
├─ @types/lru-cache@5.1.1
├─ @ungap/promise-all-settled@1.1.2
├─ abort-controller@3.0.0
├─ adm-zip@0.4.16
├─ agent-base@6.0.2
├─ ansi-colors@4.1.1
├─ ansi-escapes@4.3.2
├─ async-eventemitter@0.2.4
├─ chokidar@3.5.3
├─ ci-info@2.0.0
├─ clean-stack@2.2.0
├─ command-exists@1.2.9
├─ cookie@0.4.2
├─ core-js-pure@3.24.1
├─ deferred-leveldown@5.3.0
├─ encoding-down@6.3.0
├─ env-paths@2.2.1
├─ errno@0.1.8
├─ escalade@3.1.1
├─ ethjs-util@0.1.6
├─ event-target-shim@5.0.1
├─ flat@5.0.2
├─ follow-redirects@1.15.1
├─ fp-ts@1.19.3
├─ hardhat@2.10.1
├─ https-proxy-agent@5.0.1
├─ immutable@4.1.0
├─ indent-string@4.0.0
├─ io-ts@1.10.4
├─ is-plain-obj@2.1.0
├─ is-unicode-supported@0.1.0
├─ klaw@1.3.1
├─ level-codec@9.0.2
├─ level-errors@2.0.1
├─ level-iterator-stream@4.0.2
├─ level-packager@5.1.1
├─ level-ws@2.0.0
├─ levelup@4.4.0
├─ log-symbols@4.1.0
├─ lru_map@0.3.3
├─ lru-cache@5.1.1
├─ ltgt@2.2.1
├─ mcl-wasm@0.7.9
├─ memdown@5.1.0
├─ memorystream@0.3.1
├─ mnemonist@0.38.5
├─ mocha@10.0.0
├─ nanoid@3.3.3
├─ obliterator@2.0.4
├─ p-map@4.0.0
├─ prr@1.0.1
├─ readdirp@3.6.0
├─ rimraf@2.7.1
├─ rustbn.js@0.2.0
├─ serialize-javascript@6.0.0
├─ solc@0.7.3
├─ source-map-support@0.5.21
├─ stacktrace-parser@0.1.10
├─ true-case-path@2.2.1
├─ tsort@0.0.1
├─ tweetnacl-util@0.15.1
├─ uuid@8.3.2
├─ workerpool@6.2.1
├─ ws@7.5.9
├─ yargs-unparser@2.0.0
└─ yocto-queue@0.1.0
Done in 16.73s.
snyde_kyl@DESKTOP-QQCU554:~/hardhat-fundyoboi$ yarn hardhat
yarn run v1.22.19
warning package.json: No license field
$ /home/snyde_kyl/node_modules/.bin/hardhat
Hardhat version 2.10.1
Usage: hardhat [GLOBAL OPTIONS] <TASK> [TASK OPTIONS]
GLOBAL OPTIONS:
--config A Hardhat config file.
--emoji Use emoji in messages.
--help Shows this message, or a task's help if its name is provided
--max-memory The maximum amount of memory that Hardhat can use.
--network The network to connect to.
--show-stack-traces Show stack traces.
--tsconfig A TypeScript config file.
--verbose Enables Hardhat verbose logging
--version Shows hardhat's version.
AVAILABLE TASKS:
check Check whatever you need
clean Clears the cache and deletes all artifacts
compile Compiles the entire project, building all artifacts
console Opens a hardhat console
coverage Generates a code coverage report for tests
flatten Flattens and prints contracts and their dependencies
gas-reporter:merge
help Prints this message
node Starts a JSON-RPC server on top of Hardhat Network
run Runs a user-defined script after compiling the project
test Runs mocha tests
typechain Generate Typechain typings for compiled contracts
verify Verifies contract on Etherscan
To get help for a specific task run: npx hardhat help [task]
Done in 1.18s.
It also says in the package.json file:
{
"devDependencies": {
"@nomicfoundation/hardhat-network-helpers": "^1.0.0",
"@nomicfoundation/hardhat-toolbox": "^1.0.2",
"@nomiclabs/hardhat-ethers": "^2.0.0",
"@nomiclabs/hardhat-etherscan": "^3.0.0",
"chai": "^4.2.0",
"dotenv": "^10.0.0",
"eslint": "^7.29.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-promise": "^5.1.0",
"ethers": "^5.0.0",
"hardhat": "^2.9.3",
"hardhat-gas-reporter": "^1.0.4",
"prettier": "2.7.1",
"prettier-plugin-solidity": "^1.0.0-beta.13",
"solhint": "^3.3.6",
"solidity-coverage": "^0.7.16"
},
"dependencies": {
"@nomicfoundation/hardhat-chai-matchers": "^1.0.0",
"@typechain/hardhat": "^6.1.2",
"@types/mocha": "^9.1.0",
"ts-node": ">=8.0.0",
"typechain": "^8.1.0",
"typescript": ">=4.5.0"
}
}
Do the following:
git clone https://github.com/PatrickAlphaC/hardhat-fund-me-fcc
cd hardhat-fund-me-fcc
yarn
And you'll get 2.8.3.
If you want 2.9.3
just change the line in package.json:
"hardhat": "2.9.3",
And run yarn
again.
I keep trying to install the version of hardhat used in the video (2.9.3) but when i run "yarn add --dev hardhat@^2.9.3" it just installs hardhat 2.10.1 anyways. I used yarn remove hardhat several times and reinstalled it, yet I still get 2.10.1.
What should I do?