首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法编译或运行“安全帽”

无法编译或运行“安全帽”
EN

Stack Overflow用户
提问于 2022-04-17 12:50:00
回答 1查看 477关注 0票数 0

为了让我的机器工作,我一直在绞尽脑汁。经过一些艰苦的努力,我成功地将我的npm升级到8.7.0,我的nodejs升级到16.14.2甚至,我使用的是windows 7,这并不理想,但我真的不想升级到win10,除非没有其他方式编译/部署。

我正在使用VSC的终端,把"npx硬帽子编译“。我得到以下编译错误:

代码语言:javascript
复制
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'
}
EN

回答 1

Stack Overflow用户

发布于 2022-04-21 10:20:45

solc (solidity编译器)与您的操作系统不兼容,它不是关于硬帽子的。我强烈建议您将操作系统升级到MacOS/Linux,如果您想使用智能合同的话。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/71902018

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档