You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Lesson 9: Regarding the download of hardhat-shorthand but encountering an issue when running hh compile, where an HTML pops up instead of executing the intended command.
#6199
This issue arises due to the presence of an hh.exe file on Windows.
hh.exe is a part of the Microsoft Windows operating system, used for displaying compiled HTML help files (CHM files). It's a safe and important system component that should not be deleted or renamed. This file is typically located in the C:\Windows directory.
The attempted use of hh command from hardhat-shorthand conflicts with this system component, which likely caused the encountered issue. When typing hh in the command line, the system is actually calling hh.exe instead of hardhat-shorthand.
In the environment variables, it's necessary to place C:\Windows after the path to hh from hardhat-shorthand, so that hardhat-shorthand is found first.
Search for hardhat-shorthand and its path in the output by running: npm list -g --depth=0.
In my case, the output is: G:\Program Files\nodejs\node_global.
Additionally, after downloading with yarn, using hh results in an error: file not found.
It's necessary to download it with npm using the following command:
npm i -g hardhat-shorthand.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
This issue arises due to the presence of an hh.exe file on Windows.

hh.exe is a part of the Microsoft Windows operating system, used for displaying compiled HTML help files (CHM files). It's a safe and important system component that should not be deleted or renamed. This file is typically located in the C:\Windows directory.
The attempted use of hh command from hardhat-shorthand conflicts with this system component, which likely caused the encountered issue. When typing hh in the command line, the system is actually calling hh.exe instead of hardhat-shorthand.
In the environment variables, it's necessary to place C:\Windows after the path to hh from hardhat-shorthand, so that hardhat-shorthand is found first.
Search for hardhat-shorthand and its path in the output by running: npm list -g --depth=0.
In my case, the output is: G:\Program Files\nodejs\node_global.
Additionally, after downloading with yarn, using hh results in an error: file not found.
It's necessary to download it with npm using the following command:
npm i -g hardhat-shorthand.
Beta Was this translation helpful? Give feedback.
All reactions