BLOCKCHAIN/BlockChain

[Geth Private Network] SmartContract 배포 오류 해결 삼만리

2022. 12. 10. 23:18

(1) node.js 버전 오류

 

- node.js 최신 버전으로 업데이트 후 해결

 

(2) truffle 오류

 

-  배포하는 위치와 동일한 위치에 truffle/hdwallet-provider 삭제 후 재설치하여 해결

 

Error: Cannot find module 'truffle-hdwallet-provider'

I got the following errors while trying to deploy my smart contract: sers-Air:lottery user$ node deploy.js internal/modules/cjs/loader.js:582 throw err; ^ Error: Cannot find module 'tr...

ethereum.stackexchange.com

 

(3) node triggerUncaughtException 에러

넌 또 뭔데..

- 전부 try-catch문으로 수정하라는 방법 뿐이나 이미 try-catch 구조라 geth node 재연결하니 해결

 

How to fix this Problem, node:internal/process/promises:279 -- triggerUncaughtException(err, true /* fromPromise */);

const { exec } = require("child_process"); const executePy = (filepath) => { return new Promise((resolve, reject) => { exec( `python ${filepath}`, (error, stdout,

stackoverflow.com

 

(4) node_modules 에러

 

- 버전을 바꾸고 싶은데요 

 

- truffle init 명령어로 fruffle-config.js 파일 생성

// truffle init 실행 시 ECAC.sol 파일이 사라지므로 이외의 장소에 저장해두기

 

- truffle-config.js 파일에서 solc version 변경

 

- 버전 변경 성공 

// ECAC.sol 돌려놓기

 

- node triggerUncaughtException 에러로 돌아왔음 

'BLOCKCHAIN/BlockChain' 카테고리의 다른 글
  • [Geth Private Network] SmartContract 배포
  • [Geth Private Network] GethUbuntu 구동
  • ECAC Dapp 개발(1)
  • Truffle 없이 Testnet 배포하기 (1)
yuujoeng
yuujoeng
IT and Information Security
yuujoeng
알감자는 공부중
yuujoeng
전체
오늘
어제
  • 🎁 (201)
    • SECURITY (80)
      • 관리보안 (27)
      • System (10)
      • System | Wargame (30)
      • Android (9)
      • Reversing (3)
      • AWS (1)
    • BLOCKCHAIN (45)
      • BlockChain (22)
      • Ethereum (23)
    • PROGRAMMING (30)
      • Web (16)
      • Android (6)
      • Spring (8)
    • IT (0)
      • Article (40)
      • RaspberryPi (5)

블로그 메뉴

  • HOME
  • TIKKLE

인기 글

hELLO · Designed By 정상우.
yuujoeng
[Geth Private Network] SmartContract 배포 오류 해결 삼만리
상단으로

티스토리툴바

단축키

내 블로그

내 블로그 - 관리자 홈 전환
Q
Q
새 글 쓰기
W
W

블로그 게시글

글 수정 (권한 있는 경우)
E
E
댓글 영역으로 이동
C
C

모든 영역

이 페이지의 URL 복사
S
S
맨 위로 이동
T
T
티스토리 홈 이동
H
H
단축키 안내
Shift + /
⇧ + /

* 단축키는 한글/영문 대소문자로 이용 가능하며, 티스토리 기본 도메인에서만 동작합니다.