• 카테고리

    질문 & 답변
  • 세부 분야

    블록체인

  • 해결 여부

    미해결

truffle deploy --network klaytn 시 에러

19.05.22 14:40 작성 조회수 160

1

truffle deploy --network klaytn

명령어를 통해 컨트렉트 배포 시

 

Compiling your contracts...

===========================

> Compiling ./contracts/AdditionGame.sol

> Compiling ./contracts/Migrations.sol

> Artifacts written to /Users/charles/MyApp/sight-stock-smart-contract/build/contracts

> Compiled successfully using:

   - solc: 0.4.24+commit.e67f0147.Emscripten.clang

 

Error: Error: Web3ProviderEngine does not support synchronous requests.

    at Object.run (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-migrate/index.js:84:1)

Truffle v5.0.18 (core: 5.0.18)

Node v10.15.3

 

위와 같은 에러가 납니다.

npm 버전도 6.9.1입니다.

제공해주시는 git repo를 토대로 강의를 따라 코드를 짰습니다만,

왜 저런 에러가 나는지 아직 원인을 찾지 못했습니다.

답변 1

답변을 작성해보세요.

3

에러 보내주신거 보면 트러플 버전 5이상을 사용하고 계십니다. 

강좌에서는 4.1.15버전 인스톨해서 진행합니다. 

npm uninstall -g truffle 실행하여 기존 버전5 지우시고

npm install -g truffle@4.1.15 설치하시기 바랍니다.