inflearn logo
강의

강의

N
챌린지

챌린지

멘토링

멘토링

N
클립

클립

로드맵

로드맵

지식공유

블록체인 이더리움 부동산 댑(Dapp) 만들기 - 기본편

트러플 & 컨트랙 배포 I (구조 설명, 배포)

truffle(develop)> migrate 입력 시 오류가 납니다...

681

AHN DAHEE

작성한 질문수 7

0

TypeError [ERR_INVALID_REPL_INPUT] [ERR_INVALID_REPL_INPUT]: Listeners for `uncaughtException` cannot be used in the REPL

    at process.<anonymous> (repl.js:224:15)

    at process.emit (events.js:205:15)

    at process.emit (C:\Users\holov\AppData\Roaming\npm\node_modules\truffle\build\webpack:\~\source-map-support\source-map-support.js:454:1)

    at process.T.process.emit (C:\Users\holov\AppData\Roaming\npm\node_modules\truffle\build\webpack:\~\ganache-cli\build\lib.node.js:148:247238)

    at _addListener (events.js:226:14)

    at process.addListener (events.js:274:10)

    at Object.<anonymous> (C:\Users\holov\AppData\Roaming\npm\node_modules\truffle\node_modules\solc\soljson.js:1:1511)

    at Module._compile (internal/modules/cjs/loader.js:774:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)

    at Module.load (internal/modules/cjs/loader.js:641:32)

    at Function.Module._load (internal/modules/cjs/loader.js:556:12)

    at Module.require (internal/modules/cjs/loader.js:681:19)

    at require (internal/modules/cjs/helpers.js:16:16)

    at Object.<anonymous> (C:\Users\holov\AppData\Roaming\npm\node_modules\truffle\node_modules\solc\index.js:3:26)

    at Module._compile (internal/modules/cjs/loader.js:774:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:785:10)

    at Module.load (internal/modules/cjs/loader.js:641:32)

    at Function.Module._load (internal/modules/cjs/loader.js:556:12)

    at Module.require (internal/modules/cjs/loader.js:681:19)

    at require (internal/modules/cjs/helpers.js:16:16)

    at Object.<anonymous> (C:\Users\holov\AppData\Roaming\npm\node_modules\truffle\build\webpack:\external "solc":1:1)

    at __webpack_require__ (C:\Users\holov\AppData\Roaming\npm\node_modules\truffle\build\webpack:\webpack\bootstrap 0791995565e53f633c90:19:1)

 

이렇게 출력되는데.. truffle 버전도 맞게 깔았고, 파일 수정도 제대로 한 것 같은데.. 왜 안될까요..

blockchain dapp Ethereum

답변 9

0

Donghwi Seo

저도 동일한 에러가 발생하여서 Truffle을 최신버전으로(5버전) 업데이트하고 사용했습니다.

물론 강의에서 알려주신 버전과 다를 수 있지만 과거버전으로 진행 시 오류가 계속 발생하네요.

0

AHN DAHEE

해당 강좌에 있는 파일로 받아 다시 실행하여 truffle develop 써서 migrate 해보았지만 똑같은 에러메시지를 출력합니다....

 

0

SEJONG IT EDU

프로젝트 다 지우시고 해당 강좌에서 다운받을 수 있는 파일받아서 다시 실행해보세요. 에러메세지 보니까 가나슈 사용하신 것 같은데 truffle develop써서 migrate 해보시구요.

0

AHN DAHEE

다시 입력 시 오류메시지입니다ㅠㅠ

0

AHN DAHEE

TypeError: Contracts.compile is not a function

    at Object.run (C:\Users\holov\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-core\lib\commands\migrate.js:88:1)

    at Command.run (C:\Users\holov\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-core\lib\command.js:101:1)

    at Console.interpret (C:\Users\holov\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-core\lib\console.js:141:1)

    at ReplManager.interpret (C:\Users\holov\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-core\lib\repl.js:119:1)

    at bound (domain.js:415:14)

    at REPLServer.runBound [as eval] (domain.js:428:12)

    at REPLServer.onLine (repl.js:700:10)

    at REPLServer.emit (events.js:200:13)

    at REPLServer.EventEmitter.emit (domain.js:471:20)

    at REPLServer.Interface._onLine (readline.js:314:10)

    at REPLServer.Interface._line (readline.js:691:8)

    at REPLServer.Interface._ttyWrite (readline.js:1011:14)

    at REPLServer.self._ttyWrite (repl.js:777:7)

    at ReadStream.onkeypress (readline.js:189:10)

    at ReadStream.emit (events.js:200:13)

    at ReadStream.EventEmitter.emit (domain.js:471:20)

    at emitKeys (internal/readline.js:424:14)

    at emitKeys.next (<anonymous>)

    at ReadStream.onData (readline.js:1145:36)

    at ReadStream.emit (events.js:200:13)

    at ReadStream.EventEmitter.emit (domain.js:471:20)

    at addChunk (_stream_readable.js:290:12)

0

AHN DAHEE

저 내용이 에러메시지입니다.  migrate입력마다 저 메세지가 계속 뜹니다 

0

SEJONG IT EDU

TypeError [ERR_INVALID_REPL_INPUT] [ERR_INVALID_REPL_INPUT]: Listeners for `uncaughtException` cannot be used in the REPL

 

이 메세지는 계속 뜨는건가요? 그리고 맨 윗줄에 빨간줄 뜨는거는 솔리디티 컴파일러 버전 0.4.24나 25 설치되어 있으면 상관없습니다.

0

AHN DAHEE

맨 윗줄에 빨간줄 뜹니다.. 

0

AHN DAHEE

pragma solidity ^0.4.24;

contract MyContract {
struct Student {
string studentName;
string gender;
uint age;
}
 
mapping(uint256 => Student) studentInfo;
 
function setStudentInfo(uint _studentId, string _name, string _gender, uint _age) public {
Student storage student = studentInfo[_studentId];
 
student.studentName = _name;
student.gender = _gender;
student.age = _age;
}
 
function getStudentInfo(uint256 _studentId) public view returns (string, string, uint) {
return (studentInfo[_studentId].studentName, studentInfo[_studentId].gender, studentInfo[_studentId].age);
}
}

[긴급] 전체 소스코드 파일 있었던거 같은데 어디서 받나요?

0

240

2

블록체인 강의

0

175

2

강의내용 질문입니다 메타마스크

0

277

1

truffle develop 명령 오류

0

414

0

메타마스크 창이 안뜨네요 ㅜ

0

463

2

전제 소스 코드

1

275

0

miner.stop() 오류

0

298

0

매입 실행 시 메타마스크와 연동이 안되고 창이 안뜨고 있네요

0

654

2

코드가 다운받아지지 않습니다.

0

255

1

git에 올리신 자료 관련

0

329

2

geth rpc 에러입니다.

0

548

2

수업 자료

1

283

1

truffle 버전

2

248

0

Geth의 버전이 업데이트 되면서 실행되지 않았습니다. 의 해결법 (nodestart)

1

386

1

TypeError: Contracts.compile is not a function / powershell에 migrate 시 오류발생

0

367

1

./nodestrart.cmd

0

273

1

truffle migrate 실행 시 오류

0

254

0

nodestart.cmd 파일 실행시 오류

0

758

1

필드 초기화 질문

0

217

0

truffle 이렇다는데,, 업데이트 하게되면 강의를 들을수 있나요..?

0

212

0

puppeth 명령어 실행이 안됩니다.

0

436

1

truffle init 시 에러

0

208

0

nodestart 질문

0

487

1

메타마스크 질문

0

175

0