[英]cannot get hardhat to compile or run
我一直在絞盡腦汁讓安全帽在我的機器上工作。 經過一些 hacky 的努力后,我設法將我的 npm 升級到 8.7.0,將我的 nodejs 升級到 16.14.2 eventho 我正在使用 windows 7。開始時並不理想,但我真的不想升級到 win10,除非沒有其他編譯/部署方式。
我正在使用 VSC 的終端放置“npx hardhat compile”。 我得到以下編譯錯誤:
Internal exception in StandardCompiler::compile: C:\Users\circleci\project\libsolidity\ast\AST.cpp(183): Throw in function class std::vector<class solidity::frontend::ErrorDefinition const *,class std::allocator<class solidity::frontend::ErrorDefinition const *> > __cdecl solidity::frontend::ContractDefinition::interfaceErrors(bool) const
Dynamic exception type: struct boost::wrapexcept<struct solidity::langutil::InternalCompilerError>
std::exception::what:
[struct solidity::util::tag_comment * __ptr64] =
An unexpected error occurred:
Error: Command failed: C:\Users\Rnsn\AppData\Local\hardhat-nodejs\Cache\compilers\windows-amd64\solc-windows-amd64-v0.8.4+commit.c7e474f2.exe --standard-json
at ChildProcess.exithandler (node:child_process:399:12)
at ChildProcess.emit (node:events:526:28)
at maybeClose (node:internal/child_process:1092:16)
at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5) {
killed: false,
code: 3221225477,
signal: null,
cmd: 'C:\\Users\\Rnsn\\AppData\\Local\\hardhat-nodejs\\Cache\\compilers\\windows-amd64\\solc-windows-amd64-v0.8.4+commit.c7e474f2.exe --standard-json'
}
solc(solidity 編譯器)與您的操作系統不兼容,這與安全帽無關。 如果你想處理智能合約,我強烈建議你將你的操作系統升級到 MacOS/Linux。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.