• 카테고리

    질문 & 답변
  • 세부 분야

    블록체인

  • 해결 여부

    미해결

truffle deploy에러 문의입니다 : >

22.02.21 10:25 작성 조회수 248

0

안녕하세요 강사님!


노드버전을 10으로 다운하여  npm install을 하고 truffle.js도 작성하여 truffle deploy --network klaytn을 실행했는데, 아래와같이 에러가 나서 

에러를 구글링해보니,  You have to mention the network id in truffle.js file. 이렇게 해결하라고나오는데,

이미 NETWORK_ID는 1001로 설정된상태라 어떻게 해야하는지 모르겠어서 문의 남깁니다!

 

This version of µWS is not compatible with your Node.js build:

Error: Cannot find module './uws_darwin_x64_64.node'

Falling back to a NodeJS implementation; performance may be degraded.

 

Compiling your contracts...

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

> Compiling ./contracts/AdditionGame.sol

> Compiling ./contracts/Migrations.sol

> Artifacts written to /Users/imhyeonjeong/Desktop/클레이튼 강의/build/contracts

> Compiled successfully using:

   - solc: 0.5.16+commit.9c3226ce.Emscripten.clang

 

Error: You must specify a network_id in your 'klaytn' configuration in order to use this network.

    at Object.validateNetworkConfig (/Users/imhyeonjeong/.nvm/versions/node/v14.19.0/lib/node_modules/truffle/build/webpack:/packages/environment/environment.js:133:1)

    at Object.detect (/Users/imhyeonjeong/.nvm/versions/node/v14.19.0/lib/node_modules/truffle/build/webpack:/packages/environment/environment.js:16:1)

    at Object.module.exports [as run] (/Users/imhyeonjeong/.nvm/versions/node/v14.19.0/lib/node_modules/truffle/build/webpack:/packages/core/lib/commands/migrate/run.js:22:1)

Truffle v5.5.0 (core: 5.5.0)

Node v10.24.1

답변 1

답변을 작성해보세요.

0

do-it-for-love님의 프로필

do-it-for-love

2022.05.12

혹시 해결하셨나요..?

저도 마주쳤습니다ㅠ