PatrickAlphaC / hardhat-fund-me-fcc

82 stars 183 forks source link

Installing Hardhat v1.22.17 #45

Open quasar0x opened 2 years ago

quasar0x commented 2 years ago

Hey guys, I am having issues installing Hardhat v1.22.17 on my windows 10 PC.. On the terminal, when I run " yarn add --dev hardhat", it keeps installing the v1.22.15 version which is most likely outdated. @PatrickAlphaC installed Hardhat v1.22.17 at the beginning of this lesson but I seem to keep getting the old version which doesn't have the "advanced sample project" option.

mehedi-iitdu commented 2 years ago

Advance sample project is removed from hardhat

quasar0x commented 2 years ago

Great! Thanks @mehedi-iitdu :)

mehedi-iitdu commented 2 years ago

If you face any issue regarding hardhat let me know.

quasar0x commented 2 years ago

Okay! I will. Thanks!! :)

quasar0x commented 2 years ago

Okay so I ran this code to get the older version used in the course by @PatrickAlphaC. "yarn hardhat@2.9.3", then run "yarn hardhat". The advance sample project option would be available now. :)

Pascal4me commented 2 years ago

yarn hardhat@2.9.3

So what can we do to get all those extra dependencies patrick had from the advanced project

parasssinghl commented 1 year ago

yarn hardhat@2.9.3

So what can we do to get all those extra dependencies patrick had from the advanced project

did u find a solution yet?

quasar0x commented 1 year ago

On terminal, “yarn add hardhat@2.9.3” then "yarn hardhat"

parasssinghl commented 1 year ago

Thank

On terminal, “yarn add hardhat@2.9.3” then "yarn hardhat"

Thanks, earlier i ran this command but nothing happened, as I already installed hardhat same way shown in video. I went nuts for 1 hour. Then deleted folder and did again :P. worked

quasar0x commented 1 year ago

Lol, Great! You are welcome . :)

parasssinghl commented 1 year ago

I am having some issue while installation.

Ran "yarn init" first. Then "yarn add hardhat@2.9.3" Then "yarn hardhat", it is not showing any option to select projects, instead showing this.


warning ../../package.json: No license field
$ /home//hh-fcc/hardhat-fund-me-fcc/node_modules/.bin/hardhat
Hardhat version 2.9.3

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:

  accounts              Prints the list of accounts
  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
  verify                Verifies contract on Etherscan

To get help for a specific task run: npx hardhat help [task]

Done in 1.41s. ```
FrancoAguilera commented 1 year ago

To get the "Advance sample project" option to show up again at lesson 7, the workaround for me was to run

npx hardhat@^2.9.3

instead of

yarn hardhat
mohdziyadc commented 1 year ago

@apuser333 This arises due to the presence of a hardhat.config.js already in your project somewhere. Try running yarn hardhat --verbose This will point out the location of hardhat.config.js. Go and delete it and try running yarn hardhat again

Access08 commented 1 year ago

Advance sample project is removed from hardhat

what the alternative so i can follow along?

EggsyOnCode commented 1 year ago

Advance sample project is removed from hardhat

what the alternative so i can follow along?

just use the standard , JS project ; for extra pkgs use npm install solhint