Replies: 5 comments 3 replies
-
It will probably work with npm npm install --global hardhat-shorthand then hh compile |
Beta Was this translation helpful? Give feedback.
-
oops, yes! That's what I ended up doing and it worked. I forgot to explicitly write that in my post. I was sharing this to hopefully help others. The only thing I still don't understand is why it worked with npm but not yarn. |
Beta Was this translation helpful? Give feedback.
-
Yes, i had similar issues with YARN but then using NPM works npm install --global hardhat-shorthand |
Beta Was this translation helpful? Give feedback.
-
npm install -global worked for me too yarn works well if I want to install a package while I'm running a node instance. |
Beta Was this translation helpful? Give feedback.
-
It doesn't matter if you use npm or yarn. Because you install it globally, you should run it with sudo |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I ran into an issue setting up the hardhat shorthand installation in Lesson 9 and just wanted to share what I did in case anyone else has the same problem.
I ran
yarn global add hardhat-shorthand
and got the same success message as in Patrick's video:But when I ran
hh compile
afterwards I got the errorhh: command not found
I read this discussion, played around with adding the scripts tag in package.json but ultimately the only thing that worked was to install using NPM instead of YARN.
I dont know why, but when I installed with NPM, it started working and I can run
hh compile
now.Hope this helps if anyone else runs into similar issues :)
Beta Was this translation helpful? Give feedback.
All reactions