Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error HH604 in Hardhat: "The specified module could not be found" on Windows #6079

Open
bferreirarocha opened this issue Dec 26, 2024 · 0 comments
Assignees

Comments

@bferreirarocha
Copy link

Version of Hardhat

2.22.17

What happened?

I'm encountering an issue when running npx hardhat node on my Windows machine. After setting up a new Hardhat project, attempting to start the node results in the following error:

Error HH604: Error running JSON-RPC server: The specified module could not be found.
\\?\C:\test\node_modules\@nomicfoundation\edr-win32-x64-msvc\edr.win32-x64-msvc.node

For more info go to https://hardhat.org/HH604 or run Hardhat with --show-stack-traces

Minimal reproduction steps

Steps I've Taken:

Enabled Long Paths in Windows:

Modified the registry key HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled and set it to 1.
Restarted the computer to apply changes.
Updated Node.js:

Upgraded to the latest Node.js 18.x LTS version.
Created a New Hardhat Project:

Initialized a new project using npx hardhat in an empty directory.
Installed Hardhat Locally:

Ran npm install --save-dev hardhat to ensure Hardhat is installed as a development dependency.
Reinstalled Project Dependencies:

Deleted node_modules and package-lock.json.
Executed npm install to reinstall dependencies.
Checked for Detailed Error Logs:

Executed npx hardhat node --show-stack-traces to obtain more information, but the same error persists without additional insights.
Environment Details:

Operating System: Windows 10
Node.js Version: 18.x LTS
Hardhat Version: 2.22.17

Search terms

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

3 participants