PatrickAlphaC / hardhat-smartcontract-lottery-fcc

MIT License
117 stars 182 forks source link

bash: hh: command not found #120

Open UnknownedPhyrexia opened 1 year ago

UnknownedPhyrexia commented 1 year ago

Hi all,

I could run yarn global add hardhat-shorthand successfully, but for some reason when I try to run hh compile, it gives the error:

bash: hh: command not found

yarn hardhat works fine, just unsure of why hh does not work.

This is at 14:15:25 of the course. Any help is greatly appreciated, thank you!

yarn global v1.22.19 warning package.json: No license field [1/4] 🔍 Resolving packages... [2/4] 🚚 Fetching packages... [3/4] 🔗 Linking dependencies... [4/4] 🔨 Building fresh packages... success Installed "hardhat-shorthand@1.0.0" with binaries:

  • hh
  • hardhat-completion
DeXterYa commented 1 year ago

Hi,

This happened to me as well but I tried it with sudo and it worked: sudo yarn global add hardhat-shorthand

Hope this helps!

UnknownedPhyrexia commented 1 year ago

Hi,

This happened to me as well but I tried it with sudo and it worked: sudo yarn global add hardhat-shorthand

Hope this helps!

Hi, thanks for the reply.

Tried this, again it says that the installation was successful, but still getting the same error.

masonjake commented 1 year ago

@UnknownedPhyrexia I was able to get it working by using NPM and installing it globally with:

npm i -g hardhat-shorthand

Hope this helps!

cy4n1d3-p1x3l commented 1 year ago

You will have to use yarn hh (.......)