작성
·
460
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 버전도 맞게 깔았고, 파일 수정도 제대로 한 것 같은데.. 왜 안될까요..
답변 9
0
저도 동일한 에러가 발생하여서 Truffle을 최신버전으로(5버전) 업데이트하고 사용했습니다.
물론 강의에서 알려주신 버전과 다를 수 있지만 과거버전으로 진행 시 오류가 계속 발생하네요.
0
0
프로젝트 다 지우시고 해당 강좌에서 다운받을 수 있는 파일받아서 다시 실행해보세요. 에러메세지 보니까 가나슈 사용하신 것 같은데 truffle develop써서 migrate 해보시구요.
0
0
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
0
TypeError [ERR_INVALID_REPL_INPUT] [ERR_INVALID_REPL_INPUT]: Listeners for `uncaughtException` cannot be used in the REPL
이 메세지는 계속 뜨는건가요? 그리고 맨 윗줄에 빨간줄 뜨는거는 솔리디티 컴파일러 버전 0.4.24나 25 설치되어 있으면 상관없습니다.
0
0