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

An error occurs when executing the “npx hardhat” command on Windows 11 arm64 #6096

Open
huguojunsy opened this issue Dec 30, 2024 · 1 comment
Assignees
Labels
status:ready This issue is ready to be worked on

Comments

@huguojunsy
Copy link

Version of Hardhat

2.22.17

What happened?

OS:windows 11 arm64(24H2 , 26100.2605)
An error occurs when executing the “npx hardhat” command on Windows 11 arm64:

C:\myproject\myweb3>npx hardhat
An unexpected error occurred:

Error: Cannot find module '@nomicfoundation/solidity-analyzer-win32-arm64-msvc'
Require stack:

  • C:\myproject\myweb3\node_modules@nomicfoundation\solidity-analyzer\index.js
  • C:\myproject\myweb3\node_modules@nomicfoundation\ignition-core\dist\src\verify.js
  • C:\myproject\myweb3\node_modules@nomicfoundation\ignition-core\dist\src\index.js
  • C:\myproject\myweb3\node_modules@nomicfoundation\hardhat-ignition\dist\src\index.js
  • C:\myproject\myweb3\node_modules@nomicfoundation\hardhat-ignition-ethers\dist\src\index.js
  • C:\myproject\myweb3\node_modules@nomicfoundation\hardhat-toolbox\index.js
  • C:\myproject\myweb3\hardhat.config.ts
  • C:\myproject\myweb3\node_modules\hardhat\internal\core\config\config-loading.js
  • C:\myproject\myweb3\node_modules\hardhat\internal\cli\cli.js
  • C:\myproject\myweb3\node_modules\hardhat\internal\cli\bootstrap.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:1249:15)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (C:\myproject\myweb3\node_modules@cspotcode\source-map-support\source-map-support.js:811:30)
    at Function.Module._load (node:internal/modules/cjs/loader:1075:27)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:219:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
    at require (node:internal/modules/helpers:138:16)
    at Object. (C:\myproject\myweb3\node_modules@nomicfoundation\solidity-analyzer\index.js:107:29)
    at Module._compile (node:internal/modules/cjs/loader:1565:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1708:10) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\myproject\myweb3\node_modules\@NomicFoundation\solidity-analyzer\index.js',
    'C:\myproject\myweb3\node_modules\@NomicFoundation\ignition-core\dist\src\verify.js',
    'C:\myproject\myweb3\node_modules\@NomicFoundation\ignition-core\dist\src\index.js',
    'C:\myproject\myweb3\node_modules\@NomicFoundation\hardhat-ignition\dist\src\index.js',
    'C:\myproject\myweb3\node_modules\@NomicFoundation\hardhat-ignition-ethers\dist\src\index.js',
    'C:\myproject\myweb3\node_modules\@NomicFoundation\hardhat-toolbox\index.js',
    'C:\myproject\myweb3\hardhat.config.ts',
    'C:\myproject\myweb3\node_modules\hardhat\internal\core\config\config-loading.js',
    'C:\myproject\myweb3\node_modules\hardhat\internal\cli\cli.js',
    'C:\myproject\myweb3\node_modules\hardhat\internal\cli\bootstrap.js'
    ]
    }

Minimal reproduction steps

npm init
npm install --save-dev hardhat
npx hardhat init
npx hardhat

Search terms

No response

@kanej
Copy link
Member

kanej commented Jan 20, 2025

Currently we are not supporting Windows on ARM. We have two underlying libraries that do not support Windows on ARM:

  • EDR
  • Solidity analyzer

We are investigating turning on Windows on ARM support for both, and will report back on this issue.

@kanej kanej added status:ready This issue is ready to be worked on and removed status:triaging labels Jan 20, 2025
@kanej kanej moved this from Backlog to To-do in Hardhat Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready This issue is ready to be worked on
Projects
Status: To-do
Development

No branches or pull requests

3 participants