Truffle 나타나기 Dockerized solc를 실행하려고 합니다.

3183 단어 블록체인
문제 스택

E:\workspace\KnowledgeManagement\BlockChain\Solidity\study\truffle>truffle complie

Compiling your contracts...
===========================
'docker' �����ڲ����ⲿ���Ҳ���ǿ����еij���
�������ļ�
Error: You are trying to run dockerized solc, but docker is not installed.
    at Docker.errors (E:\softInstall
odejs
ode_global
ode_modules\truffle\build\webpack:\packages\compile-solidity\compilerSupplier\loadingStrategies\LoadingStrategy.js:66:1) at Docker.validateAndGetSolcVersion (E:\softInstall
odejs
ode_global
ode_modules\truffle\build\webpack:\packages\compile-solidity\compilerSupplier\loadingStrategies\Docker.js:78:1) at Docker.load (E:\softInstall
odejs
ode_global
ode_modules\truffle\build\webpack:\packages\compile-solidity\compilerSupplier\loadingStrategies\Docker.js:15:1) at CompilerSupplier.load (E:\softInstall
odejs
ode_global
ode_modules\truffle\build\webpack:\packages\compile-solidity\compilerSupplier\index.js:70:1) at loadParser (E:\softInstall
odejs
ode_global
ode_modules\truffle\build\webpack:\packages\compile-solidity\profiler\loadParser.js:15:29) at asyncFunction (E:\softInstall
odejs
ode_global
ode_modules\truffle\build\webpack:\packages\compile-solidity\profiler\index.js:23:1) at Object.required_sources (E:\softInstall
odejs
ode_global
ode_modules\truffle\build\webpack:\packages\compile-solidity\profiler\polycallbackify.js:14:1) at hasTargets (E:\softInstall
odejs
ode_global
ode_modules\truffle\build\webpack:\packages\compile-solidity
ew\index.js:77:1) at new Promise () at AsyncFunction.compile.with_dependencies (E:\softInstall
odejs
ode_global
ode_modules\truffle\build\webpack:\packages\compile-solidity
ew\index.js:76:33) at compile.necessary (E:\softInstall
odejs
ode_global
ode_modules\truffle\build\webpack:\packages\compile-solidity
ew\index.js:56:1) at E:\softInstall
odejs
ode_global
ode_modules\truffle\build\webpack:\packages\workflow-compile
ew\index.js:52:1 at async Promise.all (index 0) at compile (E:\softInstall
odejs
ode_global
ode_modules\truffle\build\webpack:\packages\workflow-compile
ew\index.js:39:1) at Object.compile (E:\softInstall
odejs
ode_global
ode_modules\truffle\build\webpack:\packages\workflow-compile
ew\index.js:82:52) Truffle v5.1.44 (core: 5.1.44) Node v12.18.3 E:\workspace\KnowledgeManagement\BlockChain\Solidity\study\truffle>

원인truffle-config가 나타납니다.js 프로필
compilers: {
    solc: {
       // version: "0.5.1",    // Fetch exact version from solc-bin (default: truffle's version)
       // docker: true,        // Use "0.5.1" you've installed locally with docker (default: false)
       settings: {          // See the solidity docs for advice about optimization and evmVersion
        optimizer: {
          enabled: false,
          runs: 200
        },
        //evmVersion: "byzantium"
       }
    },
  },


docker 주석을 삭제하거나false

좋은 웹페이지 즐겨찾기