无法让硬窃汇编或运行
我一直在破坏我的大脑,让硬汉在我的机器上工作。 经过一些艰苦的努力,我设法将NPM升级到8.7.0,而我的nodejs至16.14.2 Eventho我正在使用Windows 7。另一种编译/部署的方式。
我正在使用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'
}
i've been wrecking my brain to get hardhat to work on my machine.
After some hacky endeavors i managed to upgrade my npm to 8.7.0 and my nodejs to 16.14.2 eventho i am using windows 7. Which is not ideal to start with, but i really don't want to upgrade to win10 unless there's no other way to compile/deploy.
I'm using VSC's terminal putting "npx hardhat compile".
and i get the following compilation error:
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'
}
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Solc(Solidity Compiler)与您的操作系统不兼容,而是与硬汉有关。如果您想处理智能合约,我强烈建议您将操作系统升级到MACOS/Linux。
The solc (solidity compiler) is not compatible with your OS, it's not about hardhat. I highly recommend you to upgrade your OS to MacOS/Linux if you want to work on smart contracts.