-
Which compiler are you using?
Which version of Solidity or Vyper?0.8.17 zksolc/zkvyper version?1.1.4 Explain the issue...
yarn add v1.22.21
[1/4] Resolving packages...
[2/4] Fetching packages...
warning Pattern ["@matterlabs/hardhat-zksync-solc@^1.1.4"] is trying to unpack in the same destination "C:\\Users\\lijuchuan\\AppData\\Local\\Yarn\\Cache\\v6\\npm-@matterlabs-hardhat-zksync-solc-1.1.4-04a2fad6fb6b6944c64ad969080ee65b9af3f617-integrity\\node_modules\\@matterlabs\\hardhat-zksync-solc" as pattern ["@matterlabs/hardhat-zksync-solc@^1.0.5","@matterlabs/hardhat-zksync-solc@^1.0.5","@matterlabs/hardhat-zksync-solc@^1.0.5"]. This could result in non-deterministic behavior, skipping.
[3/4] Linking dependencies...
warning " > @matterlabs/[email protected]" has unmet peer dependency "@nomicfoundation/hardhat-verify@^1.0.2".
warning " > @matterlabs/[email protected]" has incorrect peer dependency "@openzeppelin/[email protected]".
warning " > @matterlabs/[email protected]" has unmet peer dependency "@openzeppelin/[email protected]".
warning " > [email protected]" has unmet peer dependency "@types/node@*".
[4/4] Building fresh packages...
warning Error running install script for optional dependency: "D:\\workspace_contract\\zkSync\\hello-zksync\\node_modules\\cpu-features: Command failed.
Exit code: 1
Command: node buildcheck.js > buildcheck.gypi && node-gyp rebuild
Arguments:
Directory: D:\\workspace_contract\\zkSync\\hello-zksync\\node_modules\\cpu-features
Output:
D:\\workspace_contract\\zkSync\\hello-zksync\\node_modules\\buildcheck\\lib\\index.js:133
throw new Error('Unable to detect compiler type');
^
Error: Unable to detect compiler type
at new BuildEnvironment (D:\\workspace_contract\\zkSync\\hello-zksync\\node_modules\\buildcheck\\lib\\index.js:133:15)
at Object.<anonymous> (D:\\workspace_contract\\zkSync\\hello-zksync\\node_modules\\cpu-features\\buildcheck.js:5:12)
at Module._compile (node:internal/modules/cjs/loader:1159:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1213:10)
at Module.load (node:internal/modules/cjs/loader:1037:32)
at Module._load (node:internal/modules/cjs/loader:878:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
at node:internal/main/run_main_module:23:47
Node.js v18.12.0"
info This module is OPTIONAL, you can safely ignore this error
success Saved 1 new dependency.
info Direct dependencies
└─ @matterlabs/[email protected]
info All dependencies
└─ @matterlabs/[email protected]
Done in 4.51s. Link to your repo?No response |
Beta Was this translation helpful? Give feedback.
Answered by
uF4No
Feb 28, 2024
Replies: 2 comments 1 reply
-
@lijuchuan I don't think that's a problem with the compiler but with Node.js. Also, notice the message: Do you actually get any errors compiling contracts? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
AlbionaHoti
This comment was marked as spam.
This comment was marked as spam.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@lijuchuan I don't think that's a problem with the compiler but with Node.js. Also, notice the message:
This module is OPTIONAL, you can safely ignore this error
.Do you actually get any errors compiling contracts?